Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Should a genesis block have a previous block? #15

Open
aljones15 opened this issue Jun 19, 2019 · 1 comment
Open

Should a genesis block have a previous block? #15

aljones15 opened this issue Jun 19, 2019 · 1 comment

Comments

@aljones15
Copy link
Contributor

From the documents:

EXAMPLE 1: Example genesis block
{
  "@context": "https://w3id.org/web-ledger/v1",
  "id": BLOCK_ID,
  "type": "LedgerConfigurationBlock",
  "ledgerConfig": {
    "id": LEDGER_ID,
    "type": "LedgerConfiguration",
    "name": "example",
    "description": "This is an example ledger.",
    "storageMechanism": STORAGE_DATA_STRUCTURE,
    "consensusAlgorithm": CONSENSUS_ALGORITHM,
  "previousBlock": {
    "hash": "urn:sha256:0000000000000000000000000000000000000000000000000000000000000000"
  },
  "signature": SIGNATURE_VALUE
}

if a genesis block is the first block why does it have a previousBlock?

@mattcollier
Copy link
Collaborator

@aljones15 can you look in at one of your ledger block collections and see if we're actually doing that now?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants