@iov/certificate-parser
v1.1.5
Published
Allows to easily parse and use certificates supported by Starname blockchain.
Downloads
1
Readme
@iov/certificate-parser
Allows to easily parse and use certificates supported by Starname blockchain.
Installation
yarn add @iov/certificate-parser
Usage
import { CertificateParser } from "certificate-parser";
// this throws on invalid certificate
const parsedCertificate = new CertificateParser("stringifiedJSONCertificate");
parsedCertificate.getStarnameInfo();
// Output
{
starname: "*starname",
address: "staraddress..."
}