Versions in this module Expand all Collapse all v1 v1.1.0 Feb 1, 2023 Changes in this version + const EXPIRED_IN + var DB *gorm.DB + var ReadOnlyDB *gorm.DB + func Init() + func MarshalPersona(persona any) string + func MarshalSignature(signature []byte) string + type Proof struct + AltID string + CreatedAt time.Time + ID int64 + Identity string + InvalidReason string + IsValid bool + LastCheckedAt time.Time + Location string + Persona string + Platform types.Platform + ProofChain ProofChain + ProofChainID int64 + func FindAllProofByPersona(persona any, orderBy string) (proofs []Proof, err error) + func (Proof) TableName() string + func (proof *Proof) IsOutdated() bool + func (proof *Proof) Revalidate() (err error) + type ProofChain struct + Action types.Action + AltID string + ArweaveID string + CreatedAt time.Time + Extra datatypes.JSON + ID int64 + Identity string + Location string + Persona string + Platform types.Platform + Previous *ProofChain + PreviousID sql.NullInt64 + Signature string + SignaturePayload string + Uuid string + func ProofChainCreateFromValidator(validator *validator.Base) (pc *ProofChain, err error) + func ProofChainFindBySignature(signature string) (pc *ProofChain, err error) + func ProofChainFindLatest(persona string) (pc *ProofChain, err error) + func (ProofChain) TableName() string + func (pc *ProofChain) Apply() (err error) + func (pc *ProofChain) Pubkey() *ecdsa.PublicKey + func (pc *ProofChain) RestoreValidator() (v *validator.Base, err error) + func (pc *ProofChain) SignatureBytes() (sig []byte) + func (pc *ProofChain) ToProofChainItem() ProofChainItem + type ProofChainArweaveDocument struct + Action types.Action + AltID string + Avatar string + CreatedAt string + Extra datatypes.JSON + Identity string + Platform types.Platform + PreviousArweaveID string + PreviousUuid string + ProofLocation string + Signature string + SignaturePayload string + Uuid string + type ProofChainItem struct + Action types.Action + AltID string + ArweaveID string + CreatedAt string + Extra datatypes.JSON + Identity string + Platform types.Platform + ProofLocation string + Signature string + SignaturePayload string + Uuid string + func ProofChainFindByPersona(persona string, all_data bool, from int, limit int) (total int64, rs []ProofChainItem, err error) v1.0.0-rc3 Nov 11, 2022 v1.0.0-rc2 Sep 27, 2022