Commit Graph

94 Commits

Author SHA1 Message Date
“thoatbk”
28bb0f4cfc enforce low S values for key signing, check BIP62 for details 2014-12-11 22:38:22 +01:00
“thoatbk”
684c306833 enforce low S values on key signing, read BIP62 for details (reverted from commit 722e2efeae) 2014-12-11 22:31:56 +01:00
“thoatbk”
722e2efeae enforce low S values on key signing, read BIP62 for details 2014-12-11 00:37:46 +01:00
Braydon Fuller
5986e9b887 upgrade to new version of bn.js that includes hex padding 2014-11-03 17:13:09 -05:00
Christopher Jeffrey
b53e285a7c paypro: rename type to sigHashAlg. 2014-09-04 15:26:20 -07:00
Christopher Jeffrey
a50b9ed3a3 paypro: implement "none" pki_type. 2014-09-04 15:26:20 -07:00
Christopher Jeffrey
a73699ba64 paypro: add PayPro.verifyCertChain. 2014-09-04 15:26:20 -07:00
Christopher Jeffrey
4e883ceba6 paypro: grab npubKeyAlg in browser. 2014-09-04 15:26:20 -07:00
Christopher Jeffrey
5c643e0be6 paypro: fix uncatchable error in browser paypro. 2014-08-28 19:22:48 -07:00
Christopher Jeffrey
18c38ae67a paypro: add returnTrust to sign(). minor improvements. 2014-08-28 18:58:58 -07:00
Christopher Jeffrey
dea39d1c72 paypro: immediately detect self signed certs and untrusted CAs. 2014-08-28 18:13:56 -07:00
Christopher Jeffrey
f34b98d253 paypro: allow users to return verification properties via PayPro.verify. 2014-08-28 17:50:57 -07:00
Christopher Jeffrey
e34f9a4061 paypro: remove old browser next pubKey code. 2014-08-28 17:37:41 -07:00
Christopher Jeffrey
f98ebe69d8 paypro: move validity and issuer validation into common. 2014-08-28 17:37:06 -07:00
Christopher Jeffrey
eba2825f5a paypro: get chain validation working in the browser. 2014-08-28 17:32:13 -07:00
Christopher Jeffrey
882ce9d809 paypro: debugging and sigAlg/pubKey formats. 2014-08-22 17:10:41 -07:00
Christopher Jeffrey
1a0de813fc paypro: fix browser kjur usage. 2014-08-22 13:21:02 -07:00
Christopher Jeffrey
11c478d1a9 paypro: fix chain validation for browser. 2014-08-22 12:18:58 -07:00
Christopher Jeffrey
4e325c3fa9 paypro: fix root cert check. 2014-08-22 09:05:05 -07:00
Christopher Jeffrey
f0757498b6 paypro: use asn1.js in browser paypro. 2014-08-22 08:56:30 -07:00
Christopher Jeffrey
569e60065a paypro: verify the certificate chain. 2014-08-21 16:13:34 -07:00
Manuel Aráoz
7d03056e09 Merge pull request #459 from ryanxcharles/feature/message-signing
add support for signing messages in compressed format
2014-08-06 10:56:07 -03:00
Ryan X. Charles
f87da3b5ba add support for signing messages in compressed format
...this is the standard way to sign messages in bitcoin-qt. Note that the
format of a compressed signature, for messages, is quite distinct from DER
format, which is used in transactions. This commit also adds support for
recovering the public key from a signature, which is necessary for this. The
code for public key recover is taken from bitcoinjs-lib.
2014-07-25 14:07:03 -07:00
Christopher Jeffrey
c533db4f42 minor: remove redundant toUpperCase calls. 2014-07-24 23:07:52 -07:00
Christopher Jeffrey
5b4c4f3894 paypro: get root cert names. 2014-07-24 23:07:52 -07:00
Christopher Jeffrey
2f6938bad0 paypro: fix handling of pki_data - cert arrays. 2014-07-23 14:22:56 -07:00
Christopher Jeffrey
017f044b53 paypro: fix browser signatures with KJUR. move pem/der functions to common. 2014-07-21 19:52:43 -07:00
Christopher Jeffrey
604ac04f47 paypro: split up paypro into node/browser/common. 2014-07-21 18:15:52 -07:00
Christopher Jeffrey
cec71a51fd paypro: add isTrusted function to RootCerts. 2014-07-21 14:56:48 -07:00
Christopher Jeffrey
672e667e9c paypro: remove x509.js 2014-07-21 14:56:48 -07:00
Christopher Jeffrey
85d5e69fc1 paypro: move root certs to common. 2014-07-21 14:56:48 -07:00
Christopher Jeffrey
8725516afb paypro: convert root certs to hash table in build file. 2014-07-21 14:55:10 -07:00
Christopher Jeffrey
cc7657d843 paypro: treat pki_data as an array. 2014-07-21 14:55:10 -07:00
Christopher Jeffrey
47e1ca5f1e minor: remove unused code. 2014-07-21 14:55:10 -07:00
Christopher Jeffrey
4dcdd3c091 paypro: temporarily disable untrusted cert error for tests. typo fix. 2014-07-21 14:55:10 -07:00
Christopher Jeffrey
f7e89b6a58 paypro: handle untrusted certs on browser and node. 2014-07-21 14:55:10 -07:00
Christopher Jeffrey
f79a31ff3c paypro: get single DER certs working. 2014-07-21 14:55:10 -07:00
Christopher Jeffrey
4ec9a247aa paypro: multiple fixes. 2014-07-21 14:55:10 -07:00
Christopher Jeffrey
24ae03247f paypro: stat using jsrsasign to convert DER to PEM and derive public keys for sig verification. 2014-07-21 14:55:10 -07:00
Christopher Jeffrey
37f20f3268 paypro: fix browser paypro. TODO: fix parsing DER certs. 2014-07-21 14:55:10 -07:00
Christopher Jeffrey
4e606c7ed2 paypro: move root certs to non-browser. 2014-07-21 14:55:10 -07:00
Christopher Jeffrey
2e422c001e paypro: fix payment protocol for DER certs. 2014-07-21 14:55:10 -07:00
Christopher Jeffrey
119ef0d611 paypro: begin checking trusted certs. 2014-07-21 14:55:10 -07:00
Christopher Jeffrey
29b067ab73 paypro: add createTrusted to browser build script. 2014-07-21 14:55:10 -07:00
Christopher Jeffrey
d4d1a11252 paypro: generate Trusted.js. 2014-07-21 14:54:38 -07:00
Christopher Jeffrey
0d68e429fc paypro: add trusted x509 certs in Trusted.js for now. 2014-07-21 14:54:38 -07:00
Christopher Jeffrey
722a10f965 paypro: fix encodings with jsrsasign. 2014-07-21 14:54:38 -07:00
Christopher Jeffrey
059b23f899 paypro: clientside. start using jsrsasign api correctly. 2014-07-21 14:54:38 -07:00
Christopher Jeffrey
538c6c32de paypro: figure out clientside jsrasign more. 2014-07-21 14:54:38 -07:00
Christopher Jeffrey
1ad3392184 paypro: add lib/browser/x509. 2014-07-21 14:54:38 -07:00