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

Saam/ec2 #683

Open
wants to merge 10 commits into
base: release/N.2.9.0-early-adopter
Choose a base branch
from

Conversation

samantehrani
Copy link

@samantehrani samantehrani commented Jan 3, 2025

  • opens up support for EC_SECP256k1 wallets. removes KeyLength/AddressLength restrictions.
  • Defines notion of Identifier to be used as Transaction.owner and Block.reward_key.
  • Defines Address/Target to be Sha256(Identifier).
  • removes signature_type from code base.

Identifiers are always of Odd length, except for the existing RSA_65537. Definition of Identifier is as follow and is backward compatible:
Let:

  • k be a wallet key used for signing/verification.

  • t be the key type of k when t∈T and T={RSA_65537, EC_SECP256K1, ...}

  • Prefix be a unique one byte prefix a given type t. {EC_SECP256K1 = 0x01}

  • PubRaw(k): be the raw public key bytes of given k.

  • PubPadded(k): when PubRaw(k) % 2 = 0 -> PubPadded(k) = PubRaw(K).

  • PubPadded(k): when PubRaw(k) % 2 = 1 -> PubPadded(k) = PubRaw(K) || 0x00 .

  • If t = RSA_65537 -> Identifier(k) = PubRaw(k).

  • If t != RSA_65537 -> Identifier(k)= p ​∥ PubPadded(K).

@JamesPiechota JamesPiechota force-pushed the release/N.2.9.0-early-adopter branch from 59bbb3c to 7a21819 Compare January 13, 2025 14:41
@ldmberman ldmberman force-pushed the release/N.2.9.0-early-adopter branch from cd97224 to 324923a Compare January 15, 2025 14:39
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.

1 participant