flow icon indicating copy to clipboard operation
flow copied to clipboard

Document signature and public key formats

Open psiemens opened this issue 3 years ago • 3 comments

Context

We should document the byte format used for signatures and public keys, both of which are specified in raw form (without metadata).

Definition of Done

  • Developers should be be able to see a description of the signature and public key formats used by Flow, and use this definition to implement Flow-compatible cryptographic functions in a variety of languages.

References

  • flow-go/crypto signature serialization: https://github.com/onflow/flow-go/blob/f21d550c6ab04dfdd637dad6480679eb39c9a922/crypto/ecdsa.go#L60-L63
  • flow-go/crypto public key serialization: https://github.com/onflow/flow-go/blob/f21d550c6ab04dfdd637dad6480679eb39c9a922/crypto/ecdsa.go#L333-L335
  • flow-go/crypto private key serialization: https://github.com/onflow/flow-go/blob/f21d550c6ab04dfdd637dad6480679eb39c9a922/crypto/ecdsa.go#L266-L267

cc @m4ksio @tarakby

psiemens avatar Feb 23 '21 18:02 psiemens

Thanks @psiemens, I've updated the references above to the comments describing the encoding method.

tarakby avatar Feb 25 '21 03:02 tarakby

can this be closed @psiemens?

alxflw avatar Jun 21 '22 15:06 alxflw

Cadence docs do detail the format of cryptographic data. Are there other specific docs you would like me to update @psiemens ? I guess transaction format and account creation?

tarakby avatar Jun 21 '22 19:06 tarakby