UNPKG

@trust/keyto

Version:

A utility for translating cryptographic keys between representations

12 lines (10 loc) 261 B
'use strict' module.exports = registry => { let AlgorithmIdentifier = registry.normalize('AlgorithmIdentifier') return function () { this.seq().obj( this.key('algorithm').use(AlgorithmIdentifier), this.key('publicKey').bitstr() ) } }