UNPKG

@trust/keyto

Version:

A utility for translating cryptographic keys between representations

13 lines (11 loc) 322 B
'use strict' module.exports = registry => { return function () { this.seq().obj( this.key('version').int(), this.key('privateKey').octstr(), this.key('parameters').explicit(0).optional().choice({ namedCurve: this.objid() }), this.key('publicKey').explicit(1).optional().bitstr() ) } }