bitcoinjs-lib/test/fixtures/ecpubkey.js
Daniel Cousens bf109f32a9 ECPubKey: improve tests and extract test data to fixtures
The use of fixtures allows for more behavioural driven tests and simpler
addition of more test cases in future.

However, as ECPubKey is just a wrapper around other strenuously tested
modules, the test data is currently limited to testing a subset of the
total wrapper.

This should probably be done better by using mocked out modules instead.
2014-05-18 17:50:10 +10:00

19 lines
No EOL
836 B
JavaScript

module.exports = {
"Q": {
"x": "55066263022277343669578718895168534326250603453777594175500187360389116729240",
"y": "32670510020758816978083085130507043184471273380659243275938904335757337482424"
},
"compressed": {
"hex": "0279be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798",
"hash160": "751e76e8199196d454941c45d1b3a323f1433bd6"
},
"uncompressed": {
"hex": "0479be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",
"hash160": "91b24bf9f5288532960ac687abb035127b1d28a5"
},
"message": "vires in numeris",
"signature": {
"r": "68972263025625296948424563184904289678530916807200550828762374724416876919710",
"s": "43478152510424186005054433052302509227777805602212468112169549534899266476898"
}
}