Wei Lu
11 years ago
27 changed files with 152 additions and 201 deletions
@ -1,4 +1,4 @@ |
|||||
module.exports = { |
{ |
||||
"valid": [ |
"valid": [ |
||||
{ |
{ |
||||
"description": "pubKeyHash", |
"description": "pubKeyHash", |
@ -1,4 +1,4 @@ |
|||||
module.exports = { |
{ |
||||
"valid": [ |
"valid": [ |
||||
{ |
{ |
||||
"hex": "", |
"hex": "", |
@ -1,4 +1,4 @@ |
|||||
module.exports = { |
{ |
||||
"valid": [ |
"valid": [ |
||||
{ |
{ |
||||
"string": "1AGNa15ZQXAZUgFiqJ2i7Z2DPU2J6hW62i", |
"string": "1AGNa15ZQXAZUgFiqJ2i7Z2DPU2J6hW62i", |
@ -1,46 +0,0 @@ |
|||||
module.exports = { |
|
||||
"valid": [ |
|
||||
{ |
|
||||
"dec": "1", |
|
||||
"hex": "01", |
|
||||
"hexPadded": "0000000000000000000000000000000000000000000000000000000000000001" |
|
||||
}, |
|
||||
{ |
|
||||
"dec": "158798437896437949616241483468158498679", |
|
||||
"hex": "77777777777777777777777777777777", |
|
||||
"hexPadded": "0000000000000000000000000000000077777777777777777777777777777777" |
|
||||
}, |
|
||||
{ |
|
||||
"dec": "115792089237316195423570985008687907852837564279074904382605163141518161494336", |
|
||||
"hex": "fffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364140", |
|
||||
"hexPadded": "fffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364140" |
|
||||
}, |
|
||||
{ |
|
||||
"dec": "48968302285117906840285529799176770990048954789747953886390402978935544927851", |
|
||||
"hex": "6c4313b03f2e7324d75e642f0ab81b734b724e13fec930f309e222470236d66b", |
|
||||
"hexPadded": "6c4313b03f2e7324d75e642f0ab81b734b724e13fec930f309e222470236d66b" |
|
||||
} |
|
||||
], |
|
||||
"invalid": [ |
|
||||
{ |
|
||||
"description": "non-hex string", |
|
||||
"string": "invalid" |
|
||||
}, |
|
||||
{ |
|
||||
"description": "non-hex alphabet", |
|
||||
"string": "c2F0b3NoaQo=" |
|
||||
}, |
|
||||
{ |
|
||||
"description": "internal whitespace", |
|
||||
"string": "11111 11111" |
|
||||
}, |
|
||||
{ |
|
||||
"description": "leading whitespace", |
|
||||
"string": " 1111111111" |
|
||||
}, |
|
||||
{ |
|
||||
"description": "trailing whitespace", |
|
||||
"string": "1111111111 " |
|
||||
} |
|
||||
] |
|
||||
} |
|
@ -1,4 +1,4 @@ |
|||||
module.exports = { |
{ |
||||
"valid": [ |
"valid": [ |
||||
{ |
{ |
||||
"dec": 0, |
"dec": 0, |
@ -1,50 +0,0 @@ |
|||||
module.exports = { |
|
||||
before: { |
|
||||
secret: 'vires is numeris', |
|
||||
hex: [ |
|
||||
'0000000000000001', |
|
||||
'0101010101010101', |
|
||||
'FFFFFFFFFFFFFFFF', |
|
||||
'4c6f72656d20697073756d20646f6c6f722073697420616d65742c20636f6e73656374657475722061646970697363696e6720656c69742e20446f6e65632061742066617563696275732073617069656e2c2076656c20666163696c6973697320617263752e20536564207574206d61737361206e6962682e205574206d6f6c6c69732070756c76696e6172206d617373612e20557420756c6c616d636f7270657220646f6c6f7220656e696d2c20696e206d6f6c657374696520656e696d20636f6e64696d656e74756d2061632e20416c697175616d206572617420766f6c75747061742e204e756c6c6120736f64616c657320617420647569206e656320' |
|
||||
], |
|
||||
}, |
|
||||
|
|
||||
after: { |
|
||||
hash160: [ |
|
||||
'cdb00698f02afd929ffabea308340fa99ac2afa8', |
|
||||
'abaf1119f83e384210fe8e222eac76e2f0da39dc', |
|
||||
'f86221f5a1fca059a865c0b7d374dfa9d5f3aeb4', |
|
||||
'9763e6b367c363bd6b88a7b361c98e6beee243a5' |
|
||||
], |
|
||||
hash256: [ |
|
||||
'3ae5c198d17634e79059c2cd735491553d22c4e09d1d9fea3ecf214565df2284', |
|
||||
'728338d99f356175c4945ef5cccfa61b7b56143cbbf426ddd0e0fc7cfe8c3c23', |
|
||||
'752adad0a7b9ceca853768aebb6965eca126a62965f698a0c1bc43d83db632ad', |
|
||||
'033588797115feb3545052670cac2a46584ab3cb460de63756ee0275e66b5799' |
|
||||
], |
|
||||
sha1: [ |
|
||||
'cb473678976f425d6ec1339838f11011007ad27d', |
|
||||
'c0357a32ed1f6a03be92dd094476f7f1a2e214ec', |
|
||||
'be673e8a56eaa9d8c1d35064866701c11ef8e089', |
|
||||
'10d96fb43aca84e342206887bbeed3065d4e4344' |
|
||||
], |
|
||||
sha256: [ |
|
||||
'cd2662154e6d76b2b2b92e70c0cac3ccf534f9b74eb5b89819ec509083d00a50', |
|
||||
'04abc8821a06e5a30937967d11ad10221cb5ac3b5273e434f1284ee87129a061', |
|
||||
'12a3ae445661ce5dee78d0650d33362dec29c4f82af05e7e57fb595bbbacf0ca', |
|
||||
'a7fb8276035057ed6479c5f2305a96da100ac43f0ac10f277e5ab8c5457429da' |
|
||||
], |
|
||||
hmacsha256: [ |
|
||||
'73442dc8dd7f71a106a20fddd49d31856b1db12956c75070c8186b0b3eb71251', |
|
||||
'7204c72af7c73f5e84447a752dc8a2708f91b896f29de5fcf4b7f42f13a30c6e', |
|
||||
'a03c2ac6e9ca86678b5608a3d8682de46d17026f5fac4fd7147d2e5022061833', |
|
||||
'a780cd6e5c29cf11f756536ea5779992687c1b3b5e37f31b027a392d94e91fb8' |
|
||||
], |
|
||||
hmacsha512: [ |
|
||||
'4c0595aed1f5d066ea9f797727c060eb86cb55ff29d4d4fd2cd0ad3a012386763aea604c030619c79aa7fd8d03cda1b73a9ebd17906a3d2a350108d1a98b24ac', |
|
||||
'f80b90d63b804b3d2ab03b9bfb3ac94ee271352eb8bddfb6b4f5cf2a4fc9176acea35f517728e64943d1eb8af1e4674a114082c81bc8874d88b408b3b406d6a4', |
|
||||
'134cf60c30a5cd412c7a5cd6c3f878279e139b47c19550b7456fa137fbf90e580ae0a923a22052f42ec801ac658db32821e271161b563eac4926285ba6b8f410', |
|
||||
'7dee95aa3c462d3eb7ecb61536cb215e471d1fa73d8643a967905946e26c536588c5058abd5a049a22b987db95a7fb420f3bff12359dc53d03d7ce7df714e029' |
|
||||
] |
|
||||
} |
|
||||
} |
|
@ -0,0 +1,50 @@ |
|||||
|
{ |
||||
|
"before": { |
||||
|
"secret": "vires is numeris", |
||||
|
"hex": [ |
||||
|
"0000000000000001", |
||||
|
"0101010101010101", |
||||
|
"FFFFFFFFFFFFFFFF", |
||||
|
"4c6f72656d20697073756d20646f6c6f722073697420616d65742c20636f6e73656374657475722061646970697363696e6720656c69742e20446f6e65632061742066617563696275732073617069656e2c2076656c20666163696c6973697320617263752e20536564207574206d61737361206e6962682e205574206d6f6c6c69732070756c76696e6172206d617373612e20557420756c6c616d636f7270657220646f6c6f7220656e696d2c20696e206d6f6c657374696520656e696d20636f6e64696d656e74756d2061632e20416c697175616d206572617420766f6c75747061742e204e756c6c6120736f64616c657320617420647569206e656320" |
||||
|
] |
||||
|
}, |
||||
|
|
||||
|
"after": { |
||||
|
"hash160": [ |
||||
|
"cdb00698f02afd929ffabea308340fa99ac2afa8", |
||||
|
"abaf1119f83e384210fe8e222eac76e2f0da39dc", |
||||
|
"f86221f5a1fca059a865c0b7d374dfa9d5f3aeb4", |
||||
|
"9763e6b367c363bd6b88a7b361c98e6beee243a5" |
||||
|
], |
||||
|
"hash256": [ |
||||
|
"3ae5c198d17634e79059c2cd735491553d22c4e09d1d9fea3ecf214565df2284", |
||||
|
"728338d99f356175c4945ef5cccfa61b7b56143cbbf426ddd0e0fc7cfe8c3c23", |
||||
|
"752adad0a7b9ceca853768aebb6965eca126a62965f698a0c1bc43d83db632ad", |
||||
|
"033588797115feb3545052670cac2a46584ab3cb460de63756ee0275e66b5799" |
||||
|
], |
||||
|
"sha1": [ |
||||
|
"cb473678976f425d6ec1339838f11011007ad27d", |
||||
|
"c0357a32ed1f6a03be92dd094476f7f1a2e214ec", |
||||
|
"be673e8a56eaa9d8c1d35064866701c11ef8e089", |
||||
|
"10d96fb43aca84e342206887bbeed3065d4e4344" |
||||
|
], |
||||
|
"sha256": [ |
||||
|
"cd2662154e6d76b2b2b92e70c0cac3ccf534f9b74eb5b89819ec509083d00a50", |
||||
|
"04abc8821a06e5a30937967d11ad10221cb5ac3b5273e434f1284ee87129a061", |
||||
|
"12a3ae445661ce5dee78d0650d33362dec29c4f82af05e7e57fb595bbbacf0ca", |
||||
|
"a7fb8276035057ed6479c5f2305a96da100ac43f0ac10f277e5ab8c5457429da" |
||||
|
], |
||||
|
"hmacsha256": [ |
||||
|
"73442dc8dd7f71a106a20fddd49d31856b1db12956c75070c8186b0b3eb71251", |
||||
|
"7204c72af7c73f5e84447a752dc8a2708f91b896f29de5fcf4b7f42f13a30c6e", |
||||
|
"a03c2ac6e9ca86678b5608a3d8682de46d17026f5fac4fd7147d2e5022061833", |
||||
|
"a780cd6e5c29cf11f756536ea5779992687c1b3b5e37f31b027a392d94e91fb8" |
||||
|
], |
||||
|
"hmacsha512": [ |
||||
|
"4c0595aed1f5d066ea9f797727c060eb86cb55ff29d4d4fd2cd0ad3a012386763aea604c030619c79aa7fd8d03cda1b73a9ebd17906a3d2a350108d1a98b24ac", |
||||
|
"f80b90d63b804b3d2ab03b9bfb3ac94ee271352eb8bddfb6b4f5cf2a4fc9176acea35f517728e64943d1eb8af1e4674a114082c81bc8874d88b408b3b406d6a4", |
||||
|
"134cf60c30a5cd412c7a5cd6c3f878279e139b47c19550b7456fa137fbf90e580ae0a923a22052f42ec801ac658db32821e271161b563eac4926285ba6b8f410", |
||||
|
"7dee95aa3c462d3eb7ecb61536cb215e471d1fa73d8643a967905946e26c536588c5058abd5a049a22b987db95a7fb420f3bff12359dc53d03d7ce7df714e029" |
||||
|
] |
||||
|
} |
||||
|
} |
@ -1,4 +1,4 @@ |
|||||
module.exports = { |
{ |
||||
"valid": { |
"valid": { |
||||
"ECPointFp": [ |
"ECPointFp": [ |
||||
{ |
{ |
@ -1,4 +1,4 @@ |
|||||
module.exports = { |
{ |
||||
"valid": [ |
"valid": [ |
||||
{ |
{ |
||||
"D": "0000000000000000000000000000000000000000000000000000000000000001", |
"D": "0000000000000000000000000000000000000000000000000000000000000001", |
@ -1,4 +1,4 @@ |
|||||
module.exports = { |
{ |
||||
"valid": [ |
"valid": [ |
||||
{ |
{ |
||||
"D": "1", |
"D": "1", |
@ -1,4 +1,4 @@ |
|||||
module.exports = { |
{ |
||||
"Q": { |
"Q": { |
||||
"x": "55066263022277343669578718895168534326250603453777594175500187360389116729240", |
"x": "55066263022277343669578718895168534326250603453777594175500187360389116729240", |
||||
"y": "32670510020758816978083085130507043184471273380659243275938904335757337482424" |
"y": "32670510020758816978083085130507043184471273380659243275938904335757337482424" |
@ -1,19 +0,0 @@ |
|||||
module.exports = { |
|
||||
magicHash: [ |
|
||||
{ |
|
||||
network: 'bitcoin', |
|
||||
message: '', |
|
||||
magicHash: '80e795d4a4caadd7047af389d9f7f220562feb6196032e2131e10563352c4bcc' |
|
||||
}, |
|
||||
{ |
|
||||
network: 'bitcoin', |
|
||||
message: 'Vires is Numeris', |
|
||||
magicHash: 'f8a5affbef4a3241b19067aa694562f64f513310817297089a8929a930f4f933' |
|
||||
}, |
|
||||
{ |
|
||||
network: 'dogecoin', |
|
||||
message: 'Vires is Numeris', |
|
||||
magicHash: 'c0963d20d0accd0ea0df6c1020bf85a7e629a40e7b5363f2c3e9dcafd5638f12' |
|
||||
} |
|
||||
] |
|
||||
} |
|
@ -0,0 +1,19 @@ |
|||||
|
{ |
||||
|
"magicHash": [ |
||||
|
{ |
||||
|
"network": "bitcoin", |
||||
|
"message": "", |
||||
|
"magicHash": "80e795d4a4caadd7047af389d9f7f220562feb6196032e2131e10563352c4bcc" |
||||
|
}, |
||||
|
{ |
||||
|
"network": "bitcoin", |
||||
|
"message": "Vires is Numeris", |
||||
|
"magicHash": "f8a5affbef4a3241b19067aa694562f64f513310817297089a8929a930f4f933" |
||||
|
}, |
||||
|
{ |
||||
|
"network": "dogecoin", |
||||
|
"message": "Vires is Numeris", |
||||
|
"magicHash": "c0963d20d0accd0ea0df6c1020bf85a7e629a40e7b5363f2c3e9dcafd5638f12" |
||||
|
} |
||||
|
] |
||||
|
} |
@ -1,54 +0,0 @@ |
|||||
module.exports = { |
|
||||
valid: [ |
|
||||
{ |
|
||||
description: 'P2SH ScriptPubKey', |
|
||||
hex: 'a914e8c300c87986efa84c37c0519929019ef86eb5b487', |
|
||||
type: 'scripthash', |
|
||||
hash: '0ba47b56a573bab4b430ad6ed3ec79270e04b066', |
|
||||
scriptPubKey: true |
|
||||
}, |
|
||||
{ |
|
||||
description: 'PubKeyHash ScriptPubKey', |
|
||||
hex: '76a9145a3acbc7bbcc97c5ff16f5909c9d7d3fadb293a888ac', |
|
||||
type: 'pubkeyhash', |
|
||||
hash: 'a5313f33d5c7b81674b35f7f3febc3522ef234db', |
|
||||
scriptPubKey: true |
|
||||
}, |
|
||||
{ |
|
||||
description: 'pubKeyHash scriptSig', |
|
||||
hex: '48304502206becda98cecf7a545d1a640221438ff8912d9b505ede67e0138485111099f696022100ccd616072501310acba10feb97cecc918e21c8e92760cd35144efec7622938f30141040cd2d2ce17a1e9b2b3b2cb294d40eecf305a25b7e7bfdafae6bb2639f4ee399b3637706c3d377ec4ab781355add443ae864b134c5e523001c442186ea60f0eb8', |
|
||||
type: 'pubkeyhash', |
|
||||
hash: 'b9bac2a5c5c29bb27c382d41fa3d179c646c78fd', |
|
||||
scriptPubKey: false |
|
||||
}, |
|
||||
{ |
|
||||
description: 'Valid multisig script', |
|
||||
hex: '5121032487c2a32f7c8d57d2a93906a6457afd00697925b0e6e145d89af6d3bca330162102308673d16987eaa010e540901cc6fe3695e758c19f46ce604e174dac315e685a52ae', |
|
||||
type: 'multisig', |
|
||||
hash: 'f1c98f0b74ecabcf78ae20dfa224bb6666051fbe', |
|
||||
scriptPubKey: true |
|
||||
}, |
|
||||
{ |
|
||||
description: 'OP_RETURN script', |
|
||||
hex:'6a2606deadbeef03f895a2ad89fb6d696497af486cb7c644a27aa568c7a18dd06113401115185474', |
|
||||
type: 'nulldata', |
|
||||
hash: 'ec88f016655477663455fe6a8e83508c348ea145', |
|
||||
scriptPubKey: true |
|
||||
}, |
|
||||
{ |
|
||||
description: 'Non standard script', |
|
||||
hex: 'aa206fe28c0ab6f1b372c1a6a246ae63f74f931e8365e15a089c68d619000000000087', |
|
||||
type: 'nonstandard', |
|
||||
hash: '3823382e70d1930989813d3459988e0d7c2861d8', |
|
||||
scriptPubKey: true |
|
||||
}, |
|
||||
{ |
|
||||
description: 'Invalid multisig script', |
|
||||
asm: '0 0 0 OP_CHECKmulTISIG', |
|
||||
hex: '000000ae', |
|
||||
type: 'nonstandard', |
|
||||
hash: '62ede8963f9387544935f168745262f703dab1fb', |
|
||||
scriptPubKey: true |
|
||||
} |
|
||||
] |
|
||||
} |
|
@ -0,0 +1,54 @@ |
|||||
|
{ |
||||
|
"valid": [ |
||||
|
{ |
||||
|
"description": "P2SH ScriptPubKey", |
||||
|
"hex": "a914e8c300c87986efa84c37c0519929019ef86eb5b487", |
||||
|
"type": "scripthash", |
||||
|
"hash": "0ba47b56a573bab4b430ad6ed3ec79270e04b066", |
||||
|
"scriptPubKey": true |
||||
|
}, |
||||
|
{ |
||||
|
"description": "PubKeyHash ScriptPubKey", |
||||
|
"hex": "76a9145a3acbc7bbcc97c5ff16f5909c9d7d3fadb293a888ac", |
||||
|
"type": "pubkeyhash", |
||||
|
"hash": "a5313f33d5c7b81674b35f7f3febc3522ef234db", |
||||
|
"scriptPubKey": true |
||||
|
}, |
||||
|
{ |
||||
|
"description": "pubKeyHash scriptSig", |
||||
|
"hex": "48304502206becda98cecf7a545d1a640221438ff8912d9b505ede67e0138485111099f696022100ccd616072501310acba10feb97cecc918e21c8e92760cd35144efec7622938f30141040cd2d2ce17a1e9b2b3b2cb294d40eecf305a25b7e7bfdafae6bb2639f4ee399b3637706c3d377ec4ab781355add443ae864b134c5e523001c442186ea60f0eb8", |
||||
|
"type": "pubkeyhash", |
||||
|
"hash": "b9bac2a5c5c29bb27c382d41fa3d179c646c78fd", |
||||
|
"scriptPubKey": false |
||||
|
}, |
||||
|
{ |
||||
|
"description": "Valid multisig script", |
||||
|
"hex": "5121032487c2a32f7c8d57d2a93906a6457afd00697925b0e6e145d89af6d3bca330162102308673d16987eaa010e540901cc6fe3695e758c19f46ce604e174dac315e685a52ae", |
||||
|
"type": "multisig", |
||||
|
"hash": "f1c98f0b74ecabcf78ae20dfa224bb6666051fbe", |
||||
|
"scriptPubKey": true |
||||
|
}, |
||||
|
{ |
||||
|
"description": "OP_RETURN script", |
||||
|
"hex":"6a2606deadbeef03f895a2ad89fb6d696497af486cb7c644a27aa568c7a18dd06113401115185474", |
||||
|
"type": "nulldata", |
||||
|
"hash": "ec88f016655477663455fe6a8e83508c348ea145", |
||||
|
"scriptPubKey": true |
||||
|
}, |
||||
|
{ |
||||
|
"description": "Non standard script", |
||||
|
"hex": "aa206fe28c0ab6f1b372c1a6a246ae63f74f931e8365e15a089c68d619000000000087", |
||||
|
"type": "nonstandard", |
||||
|
"hash": "3823382e70d1930989813d3459988e0d7c2861d8", |
||||
|
"scriptPubKey": true |
||||
|
}, |
||||
|
{ |
||||
|
"description": "Invalid multisig script", |
||||
|
"asm": "0 0 0 OP_CHECKmulTISIG", |
||||
|
"hex": "000000ae", |
||||
|
"type": "nonstandard", |
||||
|
"hash": "62ede8963f9387544935f168745262f703dab1fb", |
||||
|
"scriptPubKey": true |
||||
|
} |
||||
|
] |
||||
|
} |
Loading…
Reference in new issue