Skip to content

Commit fe68fd0

Browse files
TheTechmagedbluhm
authored andcommitted
feat: add ed/x private key to multicodecs
Signed-off-by: Colton Wolkins (Indicio work address) <colton@indicio.tech>
1 parent 637963a commit fe68fd0

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

didcomm_messaging/multiformats/multicodec.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ class SupportedCodecs(Enum):
1515
"""Enumeration of supported multicodecs."""
1616

1717
ed25519_pub = Multicodec("ed25519-pub", b"\xed\x01")
18+
ed25519_priv = Multicodec("ed25519-priv", b"\x80\x26")
1819
x25519_pub = Multicodec("x25519-pub", b"\xec\x01")
20+
x25519_priv = Multicodec("x25519-priv", b"\x82\x26")
1921
bls12381g1 = Multicodec("bls12_381-g1-pub", b"\xea\x01")
2022
bls12381g2 = Multicodec("bls12_381-g2-pub", b"\xeb\x01")
2123
bls12381g1g2 = Multicodec("bls12_381-g1g2-pub", b"\xee\x01")
@@ -40,7 +42,9 @@ def for_data(cls, data: bytes) -> Multicodec:
4042

4143
MulticodecStr = Literal[
4244
"ed25519-pub",
45+
"ed25519-priv",
4346
"x25519-pub",
47+
"x25519-priv",
4448
"bls12_381-g1-pub",
4549
"bls12_381-g2-pub",
4650
"bls12_381-g1g2-pub",

0 commit comments

Comments
 (0)