@transmute/cose
Advanced tools
Comparing version 0.0.3 to 0.0.4
@@ -37,3 +37,3 @@ "use strict"; | ||
'/' + | ||
`${prefix}:${tree_alg.toLowerCase()}:${rfc9162_1.RFC9162.binToHex(leaf)}`, | ||
`${prefix}:${tree_alg.toLowerCase()}:${leaf_index}:${rfc9162_1.RFC9162.binToHex(leaf)}`, | ||
}, | ||
@@ -40,0 +40,0 @@ payload: new_root, |
@@ -31,3 +31,3 @@ "use strict"; | ||
'/' + | ||
`${prefix}:${tree_alg.toLowerCase()}:${rfc9162_1.RFC9162.binToHex(leaf)}`, | ||
`${prefix}:${tree_alg.toLowerCase()}:${leaf_index}:${rfc9162_1.RFC9162.binToHex(leaf)}`, | ||
}, | ||
@@ -34,0 +34,0 @@ payload: root, |
{ | ||
"name": "@transmute/cose", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"description": "COSE and related work.", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
@@ -37,8 +37,8 @@ # cose | ||
# Protected Header | ||
h'a2012604588268747470733a2f2f74732e6578616d706c652f75726e3a696574663a706172616d733a7472616e733a696e636c7573696f6e3a726663393136325f7368613235363a65376631363438316539363564623432326231643764616466356337663230356164363630303434356635663934303461373663633835636161623831363838', | ||
h'a2012604588468747470733a2f2f74732e6578616d706c652f75726e3a696574663a706172616d733a7472616e733a696e636c7573696f6e3a726663393136325f7368613235363a323a65376631363438316539363564623432326231643764616466356337663230356164363630303434356635663934303461373663633835636161623831363838', | ||
# { | ||
# "alg" : "ES256", | ||
# 1 : -7, | ||
# "kid" : h'68747470733a2f2f74732e6578616d706c652f75726e3a696574663a706172616d733a7472616e733a696e636c7573696f6e3a726663393136325f7368613235363a65376631363438316539363564623432326231643764616466356337663230356164363630303434356635663934303461373663633835636161623831363838', | ||
# 4 : https://ts.example/urn:ietf:params:trans:inclusion:rfc9162_sha256:e7f16481e965db422b1d7dadf5c7f205ad6600445f5f9404a76cc85caab81688 | ||
# "kid" : h'68747470733a2f2f74732e6578616d706c652f75726e3a696574663a706172616d733a7472616e733a696e636c7573696f6e3a726663393136325f7368613235363a323a65376631363438316539363564623432326231643764616466356337663230356164363630303434356635663934303461373663633835636161623831363838', | ||
# 4 : https://ts.example/urn:ietf:params:trans:inclusion:rfc9162_sha256:2:e7f16481e965db422b1d7dadf5c7f205ad6600445f5f9404a76cc85caab81688 | ||
# } | ||
@@ -55,3 +55,3 @@ | ||
# Signature | ||
h'523824dadbc1c3b9f048d26cd3273e05999d2937702ad0501945872cd1f1744714e86504427490984eb60efff4d84dc5731fbc1e598712cd5f7128fe52629be6' | ||
h'df233b47cd787a5402cc82c7306d32a4768234ea90b86ff8a29af650f4f8f43199b05789ae190b0c8ceef31cde389332b8a5883f947937e2974fcba8bad44204' | ||
]) | ||
@@ -67,8 +67,8 @@ ``` | ||
# Protected Header | ||
h'a2012604588468747470733a2f2f74732e6578616d706c652f75726e3a696574663a706172616d733a7472616e733a636f6e73697374656e63793a726663393136325f7368613235363a65376631363438316539363564623432326231643764616466356337663230356164363630303434356635663934303461373663633835636161623831363838', | ||
h'a2012604588668747470733a2f2f74732e6578616d706c652f75726e3a696574663a706172616d733a7472616e733a636f6e73697374656e63793a726663393136325f7368613235363a323a65376631363438316539363564623432326231643764616466356337663230356164363630303434356635663934303461373663633835636161623831363838', | ||
# { | ||
# "alg" : "ES256", | ||
# 1 : -7, | ||
# "kid" : h'68747470733a2f2f74732e6578616d706c652f75726e3a696574663a706172616d733a7472616e733a636f6e73697374656e63793a726663393136325f7368613235363a65376631363438316539363564623432326231643764616466356337663230356164363630303434356635663934303461373663633835636161623831363838', | ||
# 4 : https://ts.example/urn:ietf:params:trans:consistency:rfc9162_sha256:e7f16481e965db422b1d7dadf5c7f205ad6600445f5f9404a76cc85caab81688 | ||
# "kid" : h'68747470733a2f2f74732e6578616d706c652f75726e3a696574663a706172616d733a7472616e733a636f6e73697374656e63793a726663393136325f7368613235363a323a65376631363438316539363564623432326231643764616466356337663230356164363630303434356635663934303461373663633835636161623831363838', | ||
# 4 : https://ts.example/urn:ietf:params:trans:consistency:rfc9162_sha256:2:e7f16481e965db422b1d7dadf5c7f205ad6600445f5f9404a76cc85caab81688 | ||
# } | ||
@@ -86,3 +86,3 @@ | ||
# Signature | ||
h'f9e72e54dd8212f344cd987c7b5423f84ebf8f1ae4f67b7da2ddb73e2fe593504a6bb3545bd74752aebb4a0f5d93a891e5f160b307136b811b6d7b273ae7be91' | ||
h'5f5e0d53c624f90e6d4c19bbea79d837ea66f9c46fd21a592b567cd04365fdd0564e502d52d9cdb96ee3f52fc403c99a3d9d1b127591313af127713f82648543' | ||
]) | ||
@@ -89,0 +89,0 @@ ``` |
@@ -35,3 +35,5 @@ import { RFC9162, CoMETRE } from '@transmute/rfc9162' | ||
'/' + | ||
`${prefix}:${tree_alg.toLowerCase()}:${RFC9162.binToHex(leaf)}`, | ||
`${prefix}:${tree_alg.toLowerCase()}:${leaf_index}:${RFC9162.binToHex( | ||
leaf, | ||
)}`, | ||
}, | ||
@@ -38,0 +40,0 @@ payload: new_root, |
@@ -27,3 +27,5 @@ import { RFC9162, CoMETRE } from '@transmute/rfc9162' | ||
'/' + | ||
`${prefix}:${tree_alg.toLowerCase()}:${RFC9162.binToHex(leaf)}`, | ||
`${prefix}:${tree_alg.toLowerCase()}:${leaf_index}:${RFC9162.binToHex( | ||
leaf, | ||
)}`, | ||
}, | ||
@@ -30,0 +32,0 @@ payload: root, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
70665
1310