tiny-secp256k1
Advanced tools
Comparing version 0.2.1 to 0.2.2
{ | ||
"name": "tiny-secp256k1", | ||
"version": "0.2.1", | ||
"version": "0.2.2", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -6,3 +6,8 @@ # tiny-secp256k1 | ||
## isPoint (A) | ||
This library is under development, and, like the [secp256k1](https://github.com/bitcoin-core/secp256k1) C library it depends on, this is a research effort to determine an optimal API for end-users of the bitcoinjs ecosystem. | ||
## Documentation | ||
### isPoint (A) | ||
``` haskell | ||
@@ -17,3 +22,3 @@ isPoint :: Buffer -> Bool | ||
## isPointCompressed (A) | ||
### isPointCompressed (A) | ||
``` haskell | ||
@@ -25,3 +30,3 @@ isPointCompressed :: Buffer -> Bool | ||
## isPrivate (d) | ||
### isPrivate (d) | ||
``` haskell | ||
@@ -35,3 +40,3 @@ isPrivate :: Buffer -> Bool | ||
## pointAdd (A, B[, compressed]) | ||
### pointAdd (A, B[, compressed]) | ||
``` haskell | ||
@@ -47,3 +52,3 @@ pointAdd :: Buffer -> Buffer [-> Bool] -> Maybe Buffer | ||
## pointAddScalar (A, tweak[, compressed]) | ||
### pointAddScalar (A, tweak[, compressed]) | ||
``` haskell | ||
@@ -59,3 +64,3 @@ pointAddScalar :: Buffer -> Buffer [-> Bool] -> Maybe Buffer | ||
## pointCompress (A, compressed) | ||
### pointCompress (A, compressed) | ||
``` haskell | ||
@@ -69,3 +74,3 @@ pointCompress :: Buffer -> Bool -> Buffer | ||
## pointFromScalar (d[, compressed]) | ||
### pointFromScalar (d[, compressed]) | ||
``` haskell | ||
@@ -80,3 +85,3 @@ pointFromScalar :: Buffer [-> Bool] -> Maybe Buffer | ||
## pointMultiply (A, tweak[, compressed]) | ||
### pointMultiply (A, tweak[, compressed]) | ||
``` haskell | ||
@@ -92,3 +97,3 @@ pointMultiply :: Buffer -> Buffer [-> Bool] -> Maybe Buffer | ||
## privateAdd (d, tweak) | ||
### privateAdd (d, tweak) | ||
``` haskell | ||
@@ -104,3 +109,3 @@ privateAdd :: Buffer -> Buffer -> Maybe Buffer | ||
## privateSub (d, tweak) | ||
### privateSub (d, tweak) | ||
``` haskell | ||
@@ -116,3 +121,3 @@ privateSub :: Buffer -> Buffer -> Maybe Buffer | ||
## sign (h, d) | ||
### sign (h, d) | ||
``` haskell | ||
@@ -129,3 +134,3 @@ sign :: Buffer -> Buffer -> Buffer | ||
## verify (h, Q, signature[, strict = false]) | ||
### verify (h, Q, signature[, strict = false]) | ||
``` haskell | ||
@@ -142,1 +147,11 @@ verify :: Buffer -> Buffer -> Buffer -> Bool | ||
* `Expected Scalar` if `h` is not 256-bit | ||
--- | ||
## Credit | ||
This is a partially derived work of https://github.com/cryptocoinjs/secp256k1-node, specifically [this commit](https://github.com/bitcoinjs/tiny-secp256k1/commit/03a1d0ab5d61dc05ab42a7e884cf37d628a10724). | ||
https://github.com/bitcoin-core/secp256k1 - for the secp256k1 library | ||
# LICENSE [MIT](LICENSE) |
Sorry, the diff of this file is not supported yet
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
Mixed license
License(Experimental) Package contains multiple licenses.
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
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
883636
145