Documentation
¶
Index ¶
- type AuthenticityClient
- func (c *AuthenticityClient) GenerateEcdsaKeys() (key.KeyPair, error)deprecated
- func (c *AuthenticityClient) GetSignatureCommonName(signature authenticity.Signature) (string, error)
- func (c *AuthenticityClient) GetSignatures(r record.Record) ([]authenticity.Signature, error)
- func (c *AuthenticityClient) Sign(r record.Record, s authenticity.Signer) (authenticity.Signature, error)
- func (c *AuthenticityClient) Verify(r record.Record) (bool, error)
- type AvailabilityClient
- type BloockClient
- type EncryptionClient
- func (c *EncryptionClient) Decrypt(r record.Record, decrypter encryption.Encrypter) (record.Record, error)
- func (c *EncryptionClient) Encrypt(r record.Record, encrypter encryption.Encrypter) (record.Record, error)
- func (c *EncryptionClient) GenerateRsaKeyPair() (key.KeyPair, error)deprecated
- func (c *EncryptionClient) GetEncryptionAlg(r record.Record) (encryption.EncryptionAlg, error)
- type IdentityClient
- func (c *IdentityClient) BuildCredential(schemaId string, holderKey string) identity.CredentialBuilderdeprecated
- func (c *IdentityClient) BuildSchema(displayName string, technicalName string) identity.SchemaBuilderdeprecated
- func (c *IdentityClient) CreateIdentity() (identity.Identity, error)deprecated
- func (c *IdentityClient) GetOffer(id string) (identity.CredentialOffer, error)deprecated
- func (c *IdentityClient) GetSchema(id string) (identity.Schema, error)deprecated
- func (c *IdentityClient) LoadIdentity(mnemonic string) (identity.Identity, error)deprecated
- func (c *IdentityClient) RedeemOffer(credentialOffer identity.CredentialOffer, holderPrivateKey string) (identity.Credential, error)deprecated
- func (c *IdentityClient) RevokeCredential(credential identity.Credential) (bool, error)deprecated
- func (c *IdentityClient) VerifyCredential(credential identity.Credential) (identity.CredentialVerification, error)deprecated
- func (c *IdentityClient) WaitOffer(offerID string) (identity.CredentialOffer, error)deprecated
- type IdentityV2Client
- func (c *IdentityV2Client) BuildCredential(schemaId, issuerDid, holderDid string, expiration int64, version int32) identityV2.CredentialBuilder
- func (c *IdentityV2Client) BuildIssuerSatePublisher(issuerDid string) identityV2.IssuerStatePublisher
- func (c *IdentityV2Client) BuildSchema(displayName string, schemaType, version, description, issuerDid string) identityV2.SchemaBuilder
- func (c *IdentityV2Client) CreateIssuer(issuerKey identityV2.IssuerKey, params identityV2.IssuerParams, ...) (string, error)
- func (c *IdentityV2Client) GetCredentialProof(issuerDid string, credentialId string) (identityV2.CredentialProof, error)
- func (c *IdentityV2Client) GetIssuerByKey(issuerKey identityV2.IssuerKey, params identityV2.IssuerParams) (string, error)
- func (c *IdentityV2Client) GetIssuerList() ([]string, error)
- func (c *IdentityV2Client) GetSchema(id string) (identityV2.Schema, error)
- func (c *IdentityV2Client) RevokeCredential(credential identityV2.Credential) (bool, error)
- type IntegrityClient
- func (c *IntegrityClient) GetAnchor(anchorID int64) (integrity.Anchor, error)
- func (c *IntegrityClient) GetProof(records []record.Record) (integrity.Proof, error)
- func (c *IntegrityClient) SendRecords(records []record.Record) ([]integrity.RecordReceipt, error)
- func (c *IntegrityClient) ValidateRoot(root string, params integrity.NetworkParams) (uint64, error)
- func (c *IntegrityClient) VerifyProof(proof integrity.Proof) (string, error)
- func (c *IntegrityClient) VerifyRecords(records []record.Record, params integrity.NetworkParams) (uint64, error)
- func (c *IntegrityClient) WaitAnchor(anchorID int64, params integrity.AnchorParams) (integrity.Anchor, error)
- type KeyClient
- func (c *KeyClient) ImportManagedCertificate(_type key.CertificateType, certificate []byte, ...) (key.ManagedCertificate, error)
- func (c *KeyClient) LoadLocalCertificate(pkcs12 []byte, password string) (key.LocalCertificate, error)
- func (c *KeyClient) LoadLocalKey(keyType key.KeyType, publicKey string, privateKey *string) (key.LocalKey, error)
- func (c *KeyClient) LoadManagedCertificate(id string) (key.ManagedCertificate, error)
- func (c *KeyClient) LoadManagedKey(id string) (key.ManagedKey, error)
- func (c *KeyClient) NewLocalCertificate(params key.LocalCertificateParams) (key.LocalCertificate, error)
- func (c *KeyClient) NewLocalKey(keyType key.KeyType) (key.LocalKey, error)
- func (c *KeyClient) NewManagedCertificate(params key.ManagedCertificateParams) (key.ManagedCertificate, error)
- func (c *KeyClient) NewManagedKey(params key.ManagedKeyParams) (key.ManagedKey, error)
- type RecordBuilder
- func (b RecordBuilder) Build() (record.Record, error)
- func (b RecordBuilder) GetDetails() (record.RecordDetails, error)
- func (b RecordBuilder) WithCommonName(name string) RecordBuilder
- func (b RecordBuilder) WithDecrypter(decrypter encryption.Encrypter) RecordBuilder
- func (b RecordBuilder) WithEncrypter(encrypter encryption.Encrypter) RecordBuilder
- func (b RecordBuilder) WithSigner(signer authenticity.Signer) RecordBuilder
- type RecordClient
- func (c RecordClient) FromBytes(bytes []byte) RecordBuilder
- func (c RecordClient) FromFile(file_bytes []byte) RecordBuilder
- func (c RecordClient) FromHex(hex string) RecordBuilder
- func (c RecordClient) FromJSON(json string) RecordBuilder
- func (c RecordClient) FromLoader(loader availability.Loader) RecordBuilder
- func (c RecordClient) FromRecord(record record.Record) RecordBuilder
- func (c RecordClient) FromString(str string) RecordBuilder
- type WebhookClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthenticityClient ¶ added in v2.4.0
type AuthenticityClient struct {
// contains filtered or unexported fields
}
func NewAuthenticityClient ¶ added in v2.4.0
func NewAuthenticityClient() AuthenticityClient
func NewAuthenticityClientWithConfig ¶ added in v2.4.0
func NewAuthenticityClientWithConfig(configData *proto.ConfigData) AuthenticityClient
func (*AuthenticityClient) GenerateEcdsaKeys
deprecated
added in
v2.4.0
func (c *AuthenticityClient) GenerateEcdsaKeys() (key.KeyPair, error)
Deprecated: Will be deleted in future versions. Use KeyClient.newLocalKey function instead.
func (*AuthenticityClient) GetSignatureCommonName ¶ added in v2.4.0
func (c *AuthenticityClient) GetSignatureCommonName(signature authenticity.Signature) (string, error)
func (*AuthenticityClient) GetSignatures ¶ added in v2.4.0
func (c *AuthenticityClient) GetSignatures(r record.Record) ([]authenticity.Signature, error)
func (*AuthenticityClient) Sign ¶ added in v2.4.0
func (c *AuthenticityClient) Sign(r record.Record, s authenticity.Signer) (authenticity.Signature, error)
type AvailabilityClient ¶ added in v2.4.0
type AvailabilityClient struct {
// contains filtered or unexported fields
}
func NewAvailabilityClient ¶ added in v2.4.0
func NewAvailabilityClient() AvailabilityClient
func NewAvailabilityClientWithConfig ¶ added in v2.4.0
func NewAvailabilityClientWithConfig(configData *proto.ConfigData) AvailabilityClient
func (*AvailabilityClient) Publish ¶ added in v2.4.0
func (c *AvailabilityClient) Publish(r record.Record, publisher availability.Publisher) (string, error)
func (*AvailabilityClient) Retrieve ¶ added in v2.4.0
func (c *AvailabilityClient) Retrieve(loader availability.Loader) (record.Record, error)
type BloockClient ¶ added in v2.4.0
type BloockClient struct { AuthenticityClient AuthenticityClient AvailabilityClient AvailabilityClient EncryptionClient EncryptionClient IdentityClient IdentityClient IdentityV2Client IdentityV2Client IntegrityClient IntegrityClient KeyClient KeyClient RecordClient RecordClient WebhookClient WebhookClient // contains filtered or unexported fields }
func NewBloockClient ¶ added in v2.4.0
func NewBloockClient(apiKey, apiManagedHost string, forceEnv *string) BloockClient
type EncryptionClient ¶ added in v2.4.0
type EncryptionClient struct {
// contains filtered or unexported fields
}
func NewEncryptionClient ¶ added in v2.4.0
func NewEncryptionClient() EncryptionClient
func NewEncryptionClientWithConfig ¶ added in v2.4.0
func NewEncryptionClientWithConfig(configData *proto.ConfigData) EncryptionClient
func (*EncryptionClient) Decrypt ¶ added in v2.4.0
func (c *EncryptionClient) Decrypt(r record.Record, decrypter encryption.Encrypter) (record.Record, error)
func (*EncryptionClient) Encrypt ¶ added in v2.4.0
func (c *EncryptionClient) Encrypt(r record.Record, encrypter encryption.Encrypter) (record.Record, error)
func (*EncryptionClient) GenerateRsaKeyPair
deprecated
added in
v2.4.0
func (c *EncryptionClient) GenerateRsaKeyPair() (key.KeyPair, error)
Deprecated: Will be deleted in future versions. Use KeyClient.newLocalKey function instead.
func (*EncryptionClient) GetEncryptionAlg ¶ added in v2.4.0
func (c *EncryptionClient) GetEncryptionAlg(r record.Record) (encryption.EncryptionAlg, error)
type IdentityClient ¶ added in v2.5.0
type IdentityClient struct {
// contains filtered or unexported fields
}
func NewIdentityLegacyClient
deprecated
added in
v2.7.0
func NewIdentityLegacyClient() IdentityClient
Deprecated: Will be deleted in future versions. Use NewIdentityV2Client function instead.
func NewIdentityLegacyClientWithConfig
deprecated
added in
v2.7.0
func NewIdentityLegacyClientWithConfig(configData *proto.ConfigData) IdentityClient
Deprecated: Will be deleted in future versions. Use KeyClient.newLocalKey function instead.
func (*IdentityClient) BuildCredential
deprecated
added in
v2.5.0
func (c *IdentityClient) BuildCredential(schemaId string, holderKey string) identity.CredentialBuilder
Deprecated: Will be deleted in future versions. Use KeyClient.newLocalKey function instead.
func (*IdentityClient) BuildSchema
deprecated
added in
v2.5.0
func (c *IdentityClient) BuildSchema(displayName string, technicalName string) identity.SchemaBuilder
Deprecated: Will be deleted in future versions. Use KeyClient.newLocalKey function instead.
func (*IdentityClient) CreateIdentity
deprecated
added in
v2.5.0
func (c *IdentityClient) CreateIdentity() (identity.Identity, error)
Deprecated: Will be deleted in future versions. Use KeyClient.newLocalKey function instead.
func (*IdentityClient) GetOffer
deprecated
added in
v2.5.0
func (c *IdentityClient) GetOffer(id string) (identity.CredentialOffer, error)
Deprecated: Will be deleted in future versions. Use KeyClient.newLocalKey function instead.
func (*IdentityClient) LoadIdentity
deprecated
added in
v2.5.0
func (c *IdentityClient) LoadIdentity(mnemonic string) (identity.Identity, error)
Deprecated: Will be deleted in future versions. Use KeyClient.newLocalKey function instead.
func (*IdentityClient) RedeemOffer
deprecated
added in
v2.5.0
func (c *IdentityClient) RedeemOffer(credentialOffer identity.CredentialOffer, holderPrivateKey string) (identity.Credential, error)
Deprecated: Will be deleted in future versions. Use KeyClient.newLocalKey function instead.
func (*IdentityClient) RevokeCredential
deprecated
added in
v2.5.0
func (c *IdentityClient) RevokeCredential(credential identity.Credential) (bool, error)
Deprecated: Will be deleted in future versions. Use KeyClient.newLocalKey function instead.
func (*IdentityClient) VerifyCredential
deprecated
added in
v2.5.0
func (c *IdentityClient) VerifyCredential(credential identity.Credential) (identity.CredentialVerification, error)
Deprecated: Will be deleted in future versions. Use KeyClient.newLocalKey function instead.
func (*IdentityClient) WaitOffer
deprecated
added in
v2.5.0
func (c *IdentityClient) WaitOffer(offerID string) (identity.CredentialOffer, error)
Deprecated: Will be deleted in future versions. Use KeyClient.newLocalKey function instead.
type IdentityV2Client ¶ added in v2.6.0
type IdentityV2Client struct {
// contains filtered or unexported fields
}
func NewIdentityClient ¶ added in v2.5.0
func NewIdentityClient(apiManagedHost string) IdentityV2Client
func NewIdentityClientWithConfig ¶ added in v2.5.0
func NewIdentityClientWithConfig(configData *proto.ConfigData, apiManagedHost string) IdentityV2Client
func (*IdentityV2Client) BuildCredential ¶ added in v2.6.0
func (c *IdentityV2Client) BuildCredential(schemaId, issuerDid, holderDid string, expiration int64, version int32) identityV2.CredentialBuilder
func (*IdentityV2Client) BuildIssuerSatePublisher ¶ added in v2.6.0
func (c *IdentityV2Client) BuildIssuerSatePublisher(issuerDid string) identityV2.IssuerStatePublisher
func (*IdentityV2Client) BuildSchema ¶ added in v2.6.0
func (c *IdentityV2Client) BuildSchema(displayName string, schemaType, version, description, issuerDid string) identityV2.SchemaBuilder
func (*IdentityV2Client) CreateIssuer ¶ added in v2.6.0
func (c *IdentityV2Client) CreateIssuer(issuerKey identityV2.IssuerKey, params identityV2.IssuerParams, name, description, image string) (string, error)
func (*IdentityV2Client) GetCredentialProof ¶ added in v2.6.0
func (c *IdentityV2Client) GetCredentialProof(issuerDid string, credentialId string) (identityV2.CredentialProof, error)
func (*IdentityV2Client) GetIssuerByKey ¶ added in v2.6.0
func (c *IdentityV2Client) GetIssuerByKey(issuerKey identityV2.IssuerKey, params identityV2.IssuerParams) (string, error)
func (*IdentityV2Client) GetIssuerList ¶ added in v2.6.0
func (c *IdentityV2Client) GetIssuerList() ([]string, error)
func (*IdentityV2Client) GetSchema ¶
func (c *IdentityV2Client) GetSchema(id string) (identityV2.Schema, error)
func (*IdentityV2Client) RevokeCredential ¶ added in v2.6.0
func (c *IdentityV2Client) RevokeCredential(credential identityV2.Credential) (bool, error)
type IntegrityClient ¶ added in v2.4.0
type IntegrityClient struct {
// contains filtered or unexported fields
}
func NewIntegrityClient ¶ added in v2.4.0
func NewIntegrityClient() IntegrityClient
func NewIntegrityClientWithConfig ¶ added in v2.4.0
func NewIntegrityClientWithConfig(configData *proto.ConfigData) IntegrityClient
func (*IntegrityClient) GetAnchor ¶ added in v2.4.0
func (c *IntegrityClient) GetAnchor(anchorID int64) (integrity.Anchor, error)
func (*IntegrityClient) SendRecords ¶ added in v2.4.0
func (c *IntegrityClient) SendRecords(records []record.Record) ([]integrity.RecordReceipt, error)
func (*IntegrityClient) ValidateRoot ¶ added in v2.4.0
func (c *IntegrityClient) ValidateRoot(root string, params integrity.NetworkParams) (uint64, error)
func (*IntegrityClient) VerifyProof ¶ added in v2.4.0
func (c *IntegrityClient) VerifyProof(proof integrity.Proof) (string, error)
func (*IntegrityClient) VerifyRecords ¶ added in v2.4.0
func (c *IntegrityClient) VerifyRecords(records []record.Record, params integrity.NetworkParams) (uint64, error)
func (*IntegrityClient) WaitAnchor ¶ added in v2.4.0
func (c *IntegrityClient) WaitAnchor(anchorID int64, params integrity.AnchorParams) (integrity.Anchor, error)
type KeyClient ¶ added in v2.5.0
type KeyClient struct {
// contains filtered or unexported fields
}
func NewKeyClient ¶ added in v2.5.0
func NewKeyClient() KeyClient
func NewKeyClientWithConfig ¶ added in v2.5.0
func NewKeyClientWithConfig(configData *proto.ConfigData) KeyClient
func (*KeyClient) ImportManagedCertificate ¶ added in v2.7.0
func (c *KeyClient) ImportManagedCertificate(_type key.CertificateType, certificate []byte, params key.ImportCertificateParams) (key.ManagedCertificate, error)
func (*KeyClient) LoadLocalCertificate ¶ added in v2.7.0
func (*KeyClient) LoadLocalKey ¶ added in v2.5.0
func (*KeyClient) LoadManagedCertificate ¶ added in v2.7.0
func (c *KeyClient) LoadManagedCertificate(id string) (key.ManagedCertificate, error)
func (*KeyClient) LoadManagedKey ¶ added in v2.5.0
func (c *KeyClient) LoadManagedKey(id string) (key.ManagedKey, error)
func (*KeyClient) NewLocalCertificate ¶ added in v2.7.0
func (c *KeyClient) NewLocalCertificate(params key.LocalCertificateParams) (key.LocalCertificate, error)
func (*KeyClient) NewLocalKey ¶ added in v2.5.0
func (*KeyClient) NewManagedCertificate ¶ added in v2.7.0
func (c *KeyClient) NewManagedCertificate(params key.ManagedCertificateParams) (key.ManagedCertificate, error)
func (*KeyClient) NewManagedKey ¶ added in v2.5.0
func (c *KeyClient) NewManagedKey(params key.ManagedKeyParams) (key.ManagedKey, error)
type RecordBuilder ¶ added in v2.4.0
type RecordBuilder struct {
// contains filtered or unexported fields
}
func (RecordBuilder) GetDetails ¶ added in v2.7.0
func (b RecordBuilder) GetDetails() (record.RecordDetails, error)
func (RecordBuilder) WithCommonName ¶ added in v2.4.0
func (b RecordBuilder) WithCommonName(name string) RecordBuilder
func (RecordBuilder) WithDecrypter ¶ added in v2.4.0
func (b RecordBuilder) WithDecrypter(decrypter encryption.Encrypter) RecordBuilder
func (RecordBuilder) WithEncrypter ¶ added in v2.4.0
func (b RecordBuilder) WithEncrypter(encrypter encryption.Encrypter) RecordBuilder
func (RecordBuilder) WithSigner ¶ added in v2.4.0
func (b RecordBuilder) WithSigner(signer authenticity.Signer) RecordBuilder
type RecordClient ¶ added in v2.4.0
type RecordClient struct {
// contains filtered or unexported fields
}
func NewRecordClient ¶ added in v2.4.0
func NewRecordClient() RecordClient
func NewRecordClientWithConfig ¶ added in v2.4.0
func NewRecordClientWithConfig(configData *proto.ConfigData) RecordClient
func (RecordClient) FromBytes ¶ added in v2.4.0
func (c RecordClient) FromBytes(bytes []byte) RecordBuilder
func (RecordClient) FromFile ¶ added in v2.4.0
func (c RecordClient) FromFile(file_bytes []byte) RecordBuilder
func (RecordClient) FromHex ¶ added in v2.4.0
func (c RecordClient) FromHex(hex string) RecordBuilder
func (RecordClient) FromJSON ¶ added in v2.4.0
func (c RecordClient) FromJSON(json string) RecordBuilder
func (RecordClient) FromLoader ¶ added in v2.4.0
func (c RecordClient) FromLoader(loader availability.Loader) RecordBuilder
func (RecordClient) FromRecord ¶ added in v2.4.0
func (c RecordClient) FromRecord(record record.Record) RecordBuilder
func (RecordClient) FromString ¶ added in v2.4.0
func (c RecordClient) FromString(str string) RecordBuilder
type WebhookClient ¶ added in v2.4.0
type WebhookClient struct {
// contains filtered or unexported fields
}
func NewWebhookClient ¶ added in v2.4.0
func NewWebhookClient() WebhookClient
func NewWebhookClientWithConfig ¶ added in v2.4.0
func NewWebhookClientWithConfig(configData *proto.ConfigData) WebhookClient