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

RPC method to publish bamboo entry #12

Closed
adzialocha opened this issue Dec 18, 2020 · 0 comments · Fixed by #21
Closed

RPC method to publish bamboo entry #12

adzialocha opened this issue Dec 18, 2020 · 0 comments · Fixed by #21

Comments

@adzialocha
Copy link
Member

adzialocha commented Dec 18, 2020

Implement panda_publishEntry RPC method.

Steps:

  • Decode encodedEntry and encodedMessage hex strings to bytes
  • Verify schema of CBOR payload via CDDL
  • Check if schema hash and log id are correct
  • Decode Bamboo entry
  • Get backlink and skiplink from database
  • Verify bamboo entry integrity with backlink and skiplinks
  • Insert entry in entries table
  • Upsert used log id in logs table

Related:

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants