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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user