Skip to content

docs(price-guard): document NAV signing format, key encoding, and golden test vectors (#91) - #1145

Closed
jeffrey-graham wants to merge 1 commit into
DevTobis:mainfrom
jeffrey-graham:docs/nav-signing-format-91
Closed

jeffrey-graham wants to merge 1 commit into
DevTobis:mainfrom
jeffrey-graham:docs/nav-signing-format-91

Conversation

@jeffrey-graham

Copy link
Copy Markdown

Closes #91

Summary

  • Adds docs/nav-signing.md documenting the exact byte layout of the canonical NAV message ({asset_code}:{ts}:{value}), i128 7-decimal fixed-point scaling (PRICE_SCALE = 10_000_000), raw 32-byte Ed25519 public-key extraction from Stellar G... / S... StrKeys, two complete deterministic test vectors (seed, public key, StrKey, message ASCII/hex, and 64-byte signature), and the configure_issuer_key / publish_nav operator workflow.
  • Cross-links docs/nav-signing.md from contracts/README.md and adds a unit test in contracts/price-guard/src/lib.rs and services/price-guard/src/navSignature.test.ts verifying the documented Ed25519 signature vectors.

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

Successfully merging this pull request may close these issues.

Document the NAV signing format and key encoding for operators

1 participant