diff --git a/key/set/packer.go b/key/set/packer.go index e6431ec..2003f93 100644 --- a/key/set/packer.go +++ b/key/set/packer.go @@ -12,7 +12,7 @@ import ( ) func (ks *Keyset) MarshalToCBOR() ([]byte, error) { - identityBytes, err := crypto.MarshalPrivateKey(ks.Identity) + identityBytes, err := ks.Identity.Raw() if err != nil { return nil, fmt.Errorf("marshal identity key: %w", err) }