Cardano xPrv to Crypto.PubKey.Ed25519.SecretKey
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 25/100
- Issue type
- Feature
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- haskell
- Domain
- cryptography
Research direction
Start with the shown toXPub and xPubGetPublicKey entry points and trace how XPrv and Ed25519.SecretKey are represented. Determine whether a supported conversion is possible without changing the key semantics, then document the expected behavior and validate it with the relevant cryptographic tests if available.
Written by the indexing model from the issue text.
Description
Ib cardano we have next methods
Generate extended public key from private key
toXPub :: HasCallStack => XPrv -> XPub
toXPub (XPrv ekey) = XPub pub (ChainCode cc)
where (_,r) = B.splitAt 64 $ convert ekey
(pub, cc) = B.splitAt 32 r
Return the Ed25519 public key associated with a XPub context
xPubGetPublicKey :: XPub -> Ed25519.PublicKey
xPubGetPublicKey (XPub pub _) =
throwCryptoError $ Ed25519.publicKey pub
How can we get Ed25519.SecretKey from XPrv ?
Ed25519.SecretKey expects 32 bytes, how to map first XPriv 64 bytes to Ed25519.SecretKey ?
- Dominant language
- C
- Stars
- 68
- Forks
- 45
- PR merge metrics
- No merged PRs in 30d
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from IntersectMBO/cardano-crypto
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
IntersectMBO/cardano-crypto#102 ·
-
audit :mag:
Difficulty 2/5 1-3 hours Newbie friendliness 30/100
-
Difficulty 3/5 1-2 days Newbie friendliness 45/100
IntersectMBO/cardano-crypto#93 · 1 comment ·
-
Difficulty 3/5 1-2 days Newbie friendliness 45/100
-
Some documentation?Open
Difficulty 5/5 Over a week Newbie friendliness 25/100
IntersectMBO/cardano-crypto#68 · 1 reaction ·
All issues in IntersectMBO/cardano-crypto
Similar issues
-
build: man page directory doubledPossibly taken @zeusgoose claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
-
ATtiny xy2: Missing #else path may lead to inconsistencies in core digital_pin_to_timer[] arrayOpen
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
SpenceKonde/megaTinyCore#1294 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
ROCm/rocm-libraries#15866 ·
Maintainers usually reply within 2 days
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 80/100
-
documentation
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
adafruit/circuitpython#11877 ·
Maintainers usually reply within 1 day