Public declaration syntax from forge-go/identity/persistence.go Original source SHA-256: 4157497e56566099b841502faf6cc4087f3a8bed6d8aafae20e0760d574cd87c Function bodies and constant values are omitted. This is not the complete implementation. Source line 14 type ProtectedPrivateKey struct Source line 21 type IdentityKeyProtector interface Source line 29 type SerializedIdentity struct Source line 44 func Serialize(id *ForgeAgentIdentity, protector IdentityKeyProtector) (*SerializedIdentity, error) Source line 78 func Deserialize(s *SerializedIdentity, protector IdentityKeyProtector) (*ForgeAgentIdentity, error) Source line 146 func MarshalJSON(id *ForgeAgentIdentity, protector IdentityKeyProtector) ([]byte, error) Source line 155 func UnmarshalJSON(data []byte, protector IdentityKeyProtector) (*ForgeAgentIdentity, error)