mirror of
https://github.com/hanzoai/jose.git
synced 2026-09-24 17:00:01 +00:00
BREAKING CHANGE: node.js minimal version is now v12.0.0 due to its added EdDSA support (crypto.sign, crypto.verify and eddsa key objects) resolves #12
8 lines
218 B
JavaScript
8 lines
218 B
JavaScript
module.exports = (AlgorithmIdentifier, PrivateKey) => function () {
|
|
this.seq().obj(
|
|
this.key('version').int(),
|
|
this.key('algorithm').use(AlgorithmIdentifier),
|
|
this.key('privateKey').use(PrivateKey)
|
|
)
|
|
}
|