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.Decrypter) (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.CredentialBuilder
- func (c *IdentityClient) BuildSchema(displayName string, technicalName string) identity.SchemaBuilder
- func (c *IdentityClient) CreateIdentity() (identity.Identity, error)
- func (c *IdentityClient) GetOffer(id string) (identity.CredentialOffer, error)
- func (c *IdentityClient) GetSchema(id string) (identity.Schema, error)
- func (c *IdentityClient) LoadIdentity(mnemonic string) (identity.Identity, error)
- func (c *IdentityClient) RedeemOffer(credentialOffer identity.CredentialOffer, holderPrivateKey string) (identity.Credential, error)
- func (c *IdentityClient) RevokeCredential(credential identity.Credential) (bool, error)
- func (c *IdentityClient) VerifyCredential(credential identity.Credential) (identity.CredentialVerification, error)
- func (c *IdentityClient) WaitOffer(offerID string) (identity.CredentialOffer, 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) LoadLocalKey(keyType key.KeyType, publicKey string, privateKey *string) (key.LocalKey, error)
- func (c *KeyClient) LoadManagedKey(id string) (key.ManagedKey, error)
- func (c *KeyClient) NewLocalKey(keyType key.KeyType) (key.LocalKey, error)
- func (c *KeyClient) NewManagedKey(params key.ManagedKeyParams) (key.ManagedKey, error)
- type RecordBuilder
- func (b RecordBuilder) Build() (record.Record, error)
- func (b RecordBuilder) WithCommonName(name string) RecordBuilder
- func (b RecordBuilder) WithDecrypter(decrypter encryption.Decrypter) 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 IntegrityClient IntegrityClient KeyClient KeyClient RecordClient RecordClient WebhookClient WebhookClient // contains filtered or unexported fields }
func NewBloockClient ¶ added in v2.4.0
func NewBloockClient(apiKey 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.Decrypter) (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 NewIdentityClient ¶ added in v2.5.0
func NewIdentityClient() IdentityClient
func NewIdentityClientWithConfig ¶ added in v2.5.0
func NewIdentityClientWithConfig(configData *proto.ConfigData) IdentityClient
func (*IdentityClient) BuildCredential ¶ added in v2.5.0
func (c *IdentityClient) BuildCredential(schemaId string, holderKey string) identity.CredentialBuilder
func (*IdentityClient) BuildSchema ¶ added in v2.5.0
func (c *IdentityClient) BuildSchema(displayName string, technicalName string) identity.SchemaBuilder
func (*IdentityClient) CreateIdentity ¶ added in v2.5.0
func (c *IdentityClient) CreateIdentity() (identity.Identity, error)
func (*IdentityClient) GetOffer ¶ added in v2.5.0
func (c *IdentityClient) GetOffer(id string) (identity.CredentialOffer, error)
func (*IdentityClient) GetSchema ¶ added in v2.5.0
func (c *IdentityClient) GetSchema(id string) (identity.Schema, error)
func (*IdentityClient) LoadIdentity ¶ added in v2.5.0
func (c *IdentityClient) LoadIdentity(mnemonic string) (identity.Identity, error)
func (*IdentityClient) RedeemOffer ¶ added in v2.5.0
func (c *IdentityClient) RedeemOffer(credentialOffer identity.CredentialOffer, holderPrivateKey string) (identity.Credential, error)
func (*IdentityClient) RevokeCredential ¶ added in v2.5.0
func (c *IdentityClient) RevokeCredential(credential identity.Credential) (bool, error)
func (*IdentityClient) VerifyCredential ¶ added in v2.5.0
func (c *IdentityClient) VerifyCredential(credential identity.Credential) (identity.CredentialVerification, error)
func (*IdentityClient) WaitOffer ¶ added in v2.5.0
func (c *IdentityClient) WaitOffer(offerID string) (identity.CredentialOffer, 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) LoadLocalKey ¶ added in v2.5.0
func (*KeyClient) LoadManagedKey ¶ added in v2.5.0
func (c *KeyClient) LoadManagedKey(id string) (key.ManagedKey, error)
func (*KeyClient) NewLocalKey ¶ added in v2.5.0
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) 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.Decrypter) 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
func (*WebhookClient) VerifyWebhookSignature ¶ added in v2.4.0
Click to show internal directories.
Click to hide internal directories.