Documentation ¶ Index ¶ type Unwrapper type WrappedSigner func Wrap(key principal.Signer, id did.DID) (WrappedSigner, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Unwrapper ¶ type Unwrapper interface { // Unwrap returns the unwrapped did:key of this signer. Unwrap() principal.Signer } type WrappedSigner ¶ type WrappedSigner interface { principal.Signer Unwrapper } func Wrap ¶ func Wrap(key principal.Signer, id did.DID) (WrappedSigner, error) Wrap the key of this signer into a signer with a different DID. This is primarily used to wrap a did:key signer with a signer that has a DID of a different method. Source Files ¶ View all Source files signer.go Click to show internal directories. Click to hide internal directories.