Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Identity ¶
Identity holds the service's cryptographic identity.
func NewFromPEMFile ¶
NewFromPEMFile creates a new identity from an Ed25519 PEM key file.
func NewFromPEMFileWithDID ¶
NewFromPEMFileWithDID creates a new identity from an Ed25519 PEM key file, optionally wrapping it with a did:web identity. When serviceDID is provided (e.g., "did:web:upload"), the underlying did:key signer is wrapped so the service presents itself as the did:web identity and accepts UCANs addressed to that did:web.
func (*Identity) DIDDocument ¶
DIDDocument returns a DID document for did:web resolution. This enables other services to verify signatures from this service.
func (*Identity) UnderlyingKeyDID ¶
UnderlyingKeyDID returns the underlying did:key for wrapped signers. For unwrapped signers, returns the same as DID().