 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
Constants ¶
This section is empty.
Variables ¶
      View Source
      
  var ErrProofNotFound = errors.New("proof not found")
    ErrProofNotFound is returned when proof is not found
Functions ¶
func CreateVerifyHash ¶
func CreateVerifyHash(suite signatureSuite, jsonldDoc, proofOptions map[string]interface{}) ([]byte, error)
CreateVerifyHash returns data that is used to generate or verify a digital signature Algorithm steps are described here https://w3c-dvcg.github.io/ld-signatures/#create-verify-hash-algorithm
func GetCopyWithoutProof ¶
GetCopyWithoutProof gets copy of JSON LD Object without proofs (signatures)
Types ¶
type Proof ¶
type Proof struct {
	Type       string
	Created    *time.Time
	Creator    string
	ProofValue []byte
	Domain     string
	Nonce      []byte
}
    Proof is cryptographic proof of the integrity of the DID Document
func (*Proof) JSONLdObject ¶
JSONLdObject returns map that represents JSON LD Object
 Click to show internal directories. 
   Click to hide internal directories.