Skip to content

blockchain-certificates/lds-merkle-proof-2019

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LDS Merkle Proof 2019

This package contains the set of tools for LDS Merkle Proof 2019.

  • Encoding proofValue.
  • Decoding proofValue.

Installation

To install run:

npm i --save @vaultie/lds-merkle-proof-2019

Encoding proofValue

To encode JSON proofValue:

const { Encoder } = require('@vaultie/lds-merkle-proof-2019')
const encoder = new Encoder(proofValueJSON)

encoder.encode() // Buffer of Base58 encoded data
encoder.encode().toString() // Base58 string

Decoding proofValue

To decode base58 proofValue:

const { Decoder } = require('@vaultie/lds-merkle-proof-2019')
const decoder = new Decoder(proofValueBase58)

decoder.decode() // JSON object with proofValue

About

MerkleProof2019 JSON-LD Signature Suite

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%