Add signatureVerify (#552)

* Add signatureVerify

* addressOrPublicKey typo

* Flatten verify, allow extra types

* Add signatureVerify tests

* De-dup address checksum checks
This commit is contained in:
Jaco Greeff
2020-02-24 11:55:15 +01:00
committed by GitHub
parent 341a6b0c08
commit 804ed13d0a
14 changed files with 221 additions and 50 deletions
+1 -3
View File
@@ -23,9 +23,7 @@ export default function u8aFixLength (value: Uint8Array, bitLength = -1, atStart
if (bitLength === -1 || value.length === byteLength) {
return value;
}
if (value.length > byteLength) {
} else if (value.length > byteLength) {
return value.subarray(0, byteLength);
}