Versions in this module Expand all Collapse all v1 v1.3.0 May 18, 2022 Changes in this version + const AccountIDParam + const DocumentIDParam + const ErrAccountIDInvalid + const ErrAccountNotFound + const ErrDocumentNotFound + const ErrInvalidDocumentID + const RegistryAddressParam + const TokenIDParam + const VersionIDParam + func ToDocumentAttributes(cattrs map[string]AttributeRequest) (map[documents.AttrKey]documents.Attribute, error) + func ToDocumentsCreatePayload(request CreateDocumentRequest) (documents.CreatePayload, error) + func ToNFTMintRequest(req MintNFTRequest, registryAddress common.Address) nft.MintNFTRequest + func ToNFTMintRequestOnCC(req MintNFTOnCCRequest, registryAddress common.Address) nft.MintNFTOnCCRequest + type Account struct + CentChainAccount config.CentChainAccount + EthereumAccount EthAccount + EthereumDefaultAccountName string + IdentityID byteutils.HexBytes + P2PKeyPair KeyPair + ReceiveEventNotificationEndpoint string + SigningKeyPair KeyPair + func ToClientAccount(acc config.Account) (Account, error) + type Accounts struct + Data []Account + func ToClientAccounts(accs []config.Account) (Accounts, error) + type AttributeMapRequest map[string]AttributeRequest + type AttributeMapResponse map[string]AttributeResponse + type AttributeRequest struct + MonetaryValue *MonetaryValue + Type string + Value string + type AttributeResponse struct + Key byteutils.HexBytes + SignedValue SignedValue + type CreateDocumentRequest struct + Attributes AttributeMapRequest + Data interface{} + ReadAccess []identity.DID + Scheme string + WriteAccess []identity.DID + type DocumentResponse struct + Attributes AttributeMapResponse + Data interface{} + Header ResponseHeader + Scheme string + func GetDocumentResponse(model documents.Document, tokenRegistry documents.TokenRegistry, jobID string) (resp DocumentResponse, err error) + type EthAccount struct + Address string + Key string + Password string + type GenerateAccountPayload struct + CentChainAccount config.CentChainAccount + type KeyPair struct + Pub string + Pvt string + type MintNFTOnCCRequest struct + DepositAddress byteutils.HexBytes + DocumentID byteutils.HexBytes + ProofFields []string + type MintNFTOnCCResponse struct + DepositAddress byteutils.HexBytes + DocumentID byteutils.HexBytes + Header NFTResponseHeader + RegistryAddress common.Address + TokenID string + type MintNFTRequest struct + AssetManagerAddress byteutils.OptionalHex + DepositAddress common.Address + DocumentID byteutils.HexBytes + ProofFields []string + type MintNFTResponse struct + DepositAddress common.Address + DocumentID byteutils.HexBytes + Header NFTResponseHeader + RegistryAddress common.Address + TokenID string + type MonetaryValue struct + ChainID byteutils.HexBytes + ID string + Value *documents.Decimal + type NFT struct + Owner string + Registry string + TokenID string + type NFTOwnerOnCCResponse struct + Owner byteutils.HexBytes + RegistryAddress common.Address + TokenID string + type NFTOwnerResponse struct + Owner common.Address + RegistryAddress common.Address + TokenID string + type NFTResponseHeader struct + JobID string + type ProofResponseHeader struct + DocumentID byteutils.HexBytes + State string + VersionID byteutils.HexBytes + type ProofsRequest struct + Fields []string + type ProofsResponse struct + FieldProofs []documents.Proof + Header ProofResponseHeader + func ConvertProofs(proof *documents.DocumentProof) ProofsResponse + type ResponseHeader struct + Author string + CreatedAt string + DocumentID string + Fingerprint byteutils.HexBytes + JobID string + NFTs []NFT + NextVersionID string + PreviousVersionID string + ReadAccess []identity.DID + Status string + VersionID string + WriteAccess []identity.DID + func DeriveResponseHeader(tokenRegistry documents.TokenRegistry, model documents.Document, jobID string) (response ResponseHeader, err error) + type SignRequest struct + Payload byteutils.HexBytes + type SignResponse struct + Payload byteutils.HexBytes + PublicKey byteutils.HexBytes + Signature byteutils.HexBytes + SignerID byteutils.HexBytes + type SignedValue struct + Identity identity.DID + Value byteutils.HexBytes + type TransferNFTOnCCRequest struct + To byteutils.HexBytes + type TransferNFTOnCCResponse struct + Header NFTResponseHeader + RegistryAddress common.Address + To byteutils.HexBytes + TokenID string + type TransferNFTRequest struct + To common.Address + type TransferNFTResponse struct + Header NFTResponseHeader + RegistryAddress common.Address + To common.Address + TokenID string