pub fn ed25519_pkcs8_der_from_seed(seed: &[u8; 32]) -> Vec<u8> ⓘExpand description
Wrap a 32-byte ed25519 seed in PKCS#8 v1 DER (RFC 8410, OID 1.3.101.112).
The 16-byte prefix is the fixed PKCS#8 envelope for an ed25519 seed:
SEQUENCE(46) { INTEGER(0); SEQUENCE { OID 1.3.101.112 }; OCTET STRING(34) { OCTET STRING(32) <seed> } }.