Documentation ¶
Index ¶
- func GetDocumentSignature(doc types.SsiMsg, docProof *types.DocumentProof, privateKey string) (string, error)
- func GetPublicKeyAndOptionalID(keyPair IKeyPair) (string, string)
- func GetSignatureTypeFromVmType(vmType string) string
- func SignGeneric(keyPair IKeyPair, doc types.SsiMsg, docProof *types.DocumentProof) string
- type BabyJubJubKeyPair
- type BbsBlsKeyPair
- type Ed25519KeyPair
- type IKeyPair
- type Secp256k1Pair
- type Secp256k1RecoveryPair
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDocumentSignature ¶
func SignGeneric ¶
Types ¶
type BabyJubJubKeyPair ¶
type BabyJubJubKeyPair struct { Type string PublicKey string PrivateKey string VerificationMethodId string OptionalID string // If this field is not empty, it will override publicKey as the method specific id }
func GenerateBabyJubJubKeyPair ¶
func GenerateBabyJubJubKeyPair() *BabyJubJubKeyPair
func (*BabyJubJubKeyPair) GetOptionalID ¶
func (kp *BabyJubJubKeyPair) GetOptionalID() string
func (*BabyJubJubKeyPair) GetPrivateKey ¶
func (kp *BabyJubJubKeyPair) GetPrivateKey() string
func (*BabyJubJubKeyPair) GetPublicKey ¶
func (kp *BabyJubJubKeyPair) GetPublicKey() string
func (*BabyJubJubKeyPair) GetType ¶
func (kp *BabyJubJubKeyPair) GetType() string
func (*BabyJubJubKeyPair) GetVerificationMethodId ¶
func (kp *BabyJubJubKeyPair) GetVerificationMethodId() string
type BbsBlsKeyPair ¶
type BbsBlsKeyPair struct { Type string PublicKey string PrivateKey string VerificationMethodId string OptionalID string // If this field is not empty, it will override publicKey as the method specific id }
func GenerateBbsBlsKeyPair ¶
func GenerateBbsBlsKeyPair() *BbsBlsKeyPair
func (*BbsBlsKeyPair) GetOptionalID ¶
func (kp *BbsBlsKeyPair) GetOptionalID() string
func (*BbsBlsKeyPair) GetPrivateKey ¶
func (kp *BbsBlsKeyPair) GetPrivateKey() string
func (*BbsBlsKeyPair) GetPublicKey ¶
func (kp *BbsBlsKeyPair) GetPublicKey() string
func (*BbsBlsKeyPair) GetType ¶
func (kp *BbsBlsKeyPair) GetType() string
func (*BbsBlsKeyPair) GetVerificationMethodId ¶
func (kp *BbsBlsKeyPair) GetVerificationMethodId() string
type Ed25519KeyPair ¶
type Ed25519KeyPair struct { Type string PublicKey string PrivateKey string VerificationMethodId string OptionalID string // If this field is not empty, it will override publicKey as the method specific id }
func GenerateEd25519KeyPair ¶
func GenerateEd25519KeyPair() *Ed25519KeyPair
func (*Ed25519KeyPair) GetOptionalID ¶
func (kp *Ed25519KeyPair) GetOptionalID() string
func (*Ed25519KeyPair) GetPrivateKey ¶
func (kp *Ed25519KeyPair) GetPrivateKey() string
func (*Ed25519KeyPair) GetPublicKey ¶
func (kp *Ed25519KeyPair) GetPublicKey() string
func (*Ed25519KeyPair) GetType ¶
func (kp *Ed25519KeyPair) GetType() string
func (*Ed25519KeyPair) GetVerificationMethodId ¶
func (kp *Ed25519KeyPair) GetVerificationMethodId() string
type IKeyPair ¶
type IKeyPair interface { GetType() string GetPublicKey() string GetPrivateKey() string GetVerificationMethodId() string GetOptionalID() string }
func CollectKeysPairs ¶
type Secp256k1Pair ¶
type Secp256k1Pair struct { Type string PublicKey string PrivateKey string VerificationMethodId string OptionalID string // If this field is not empty, it will override publicKey as the method specific id }
func GenerateSecp256k1KeyPair ¶
func GenerateSecp256k1KeyPair() *Secp256k1Pair
func (*Secp256k1Pair) GetOptionalID ¶
func (kp *Secp256k1Pair) GetOptionalID() string
func (*Secp256k1Pair) GetPrivateKey ¶
func (kp *Secp256k1Pair) GetPrivateKey() string
func (*Secp256k1Pair) GetPublicKey ¶
func (kp *Secp256k1Pair) GetPublicKey() string
func (*Secp256k1Pair) GetType ¶
func (kp *Secp256k1Pair) GetType() string
func (*Secp256k1Pair) GetVerificationMethodId ¶
func (kp *Secp256k1Pair) GetVerificationMethodId() string
type Secp256k1RecoveryPair ¶
type Secp256k1RecoveryPair struct { Type string PublicKey string PrivateKey string VerificationMethodId string OptionalID string // If this field is not empty, it will override publicKey as the method specific id }
func GenerateSecp256k1RecoveryKeyPair ¶
func GenerateSecp256k1RecoveryKeyPair() *Secp256k1RecoveryPair
func (*Secp256k1RecoveryPair) GetOptionalID ¶
func (kp *Secp256k1RecoveryPair) GetOptionalID() string
func (*Secp256k1RecoveryPair) GetPrivateKey ¶
func (kp *Secp256k1RecoveryPair) GetPrivateKey() string
func (*Secp256k1RecoveryPair) GetPublicKey ¶
func (kp *Secp256k1RecoveryPair) GetPublicKey() string
func (*Secp256k1RecoveryPair) GetType ¶
func (kp *Secp256k1RecoveryPair) GetType() string
func (*Secp256k1RecoveryPair) GetVerificationMethodId ¶
func (kp *Secp256k1RecoveryPair) GetVerificationMethodId() string
Click to show internal directories.
Click to hide internal directories.