Versions in this module Expand all Collapse all v2 v2.0.0 Feb 17, 2023 Changes in this version + const DelegDocDid + const DelegationName + const OtherDelegationName + const OtherDid + const OtherProof + const ValidAudience + const ValidBip39Seed + const ValidDid + const ValidMnemonicEnglish + const ValidMnemonicSpanish + const ValidName + const ValidPath + const ValidPublicBase58 + var OtherDocDid = identity.MakeIdentifier(ValidKeyPairPlop.PublicKeyBytes) + var OtherDocIssuer = register.NewIssuer(OtherDocDid, "#DelegatedDoc") + var PrivateExponentHex = "263e24ead2c98974a4bdcdb30f99be98ed89463270ee128f80536627fdcdf3ee" + var PublicKey = register.NewRegisterPublicKey(ValidIssuer.Name, register.PublicKeyType, ValidIssuerKey.PublicKeyBase58, ...) + var SimpleDoc = register.NewRegisterDocument(opts) + var ValidBip39Seed32B = []byte(ValidBip39Seed) + var ValidContent = []byte("a content") + var ValidIssuer = register.NewIssuer(ValidDid, ValidName) + var ValidIssuerKey = register.NewIssuerKey(ValidIssuer.Did, ValidIssuer.Name, ValidKeyPair.PublicKeyBase58) + var ValidKeyPair = crypto.GetKeyPair(ValidSecret) + var ValidKeyPair2 = crypto.GetKeyPair(ValidSecret2) + var ValidKeyPair3 = crypto.GetKeyPair(ValidKeyPairSecrets3) + var ValidKeyPairPath = fmt.Sprintf("%s/plop", validation.IoticsPathPrefix) + var ValidKeyPairPlop = crypto.GetKeyPair(ValidKeyPairSecretsPlop) + var ValidKeyPairPlop2 = crypto.GetKeyPair(ValidKeyPairSecretsPlop2) + var ValidKeyPairSecrets3 = crypto.NewKeyPairSecrets([]byte("d2397e8b83cf4a7073a26c1a1cdb6683"), "iotics/0/plop/plop3", ...) + var ValidKeyPairSecretsPlop = crypto.NewKeyPairSecrets([]byte("d2397e8b83cf4a7073a26c1a1cdb6666"), "iotics/0/plop/plop", ...) + var ValidKeyPairSecretsPlop2 = crypto.NewKeyPairSecrets([]byte("d2397e8b83cf4a7073a26c1a1cdb6666"), "iotics/0/plop/plop1", ...) + var ValidPrivateKey = crypto.GetPrivateKey(ValidSecret) + var ValidProof = proof.NewProof(ValidPrivateKey, ValidIssuer.Did, ValidIssuer.Name, ValidContent) + var ValidSecret = crypto.NewDefaultKeyPairSecrets(ValidBip39Seed32B, ValidPath) + var ValidSecret2 = crypto.NewDefaultKeyPairSecrets(ValidBip39Seed32B, "iotics/0/something/user2") + var ValidSeed16B = []byte(strings.Repeat("a", 16)) + func HelperGetRegisterDocument() (*register.RegisterDocument, *register.Issuer, *crypto.KeyPair) + func HelperGetRegisterDocumentFromSecret(keypair *crypto.KeyPair, name string, purpose identity.DidType) (*register.RegisterDocument, *register.Issuer) + func SetupIdentitiesForAuth(resolver register.ResolverClient, control bool, auth bool) (register.RegisteredIdentity, register.RegisteredIdentity) + type InMemoryResolver struct + CountDiscover *counter + CountRegister *counter + func NewInMemoryResolver(docs ...*register.RegisterDocument) *InMemoryResolver + func (c InMemoryResolver) GetDocument(ctx context.Context, documentID string) (*register.RegisterDocument, error) + func (c InMemoryResolver) RegisterDocument(ctx context.Context, document *register.RegisterDocument, _ *ecdsa.PrivateKey, ...) error Other modules containing this package github.com/Iotic-Labs/iotics-identity-go github.com/Iotic-Labs/iotics-identity-go/v3