Compare commits
3 Commits
v0.0.2-dev
...
v0.0.2-dev
Author | SHA1 | Date |
---|---|---|
semantic-release-bot | 33da202f99 | |
Derrick Hammer | 17b9af7e71 | |
Derrick Hammer | a6ec4d6bed |
|
@ -1,3 +1,10 @@
|
|||
## [0.0.2-develop.3](https://git.lumeweb.com/LumeWeb/peer-discovery-irc/compare/v0.0.2-develop.2...v0.0.2-develop.3) (2023-07-03)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* use utf8ToBytes ([a6ec4d6](https://git.lumeweb.com/LumeWeb/peer-discovery-irc/commit/a6ec4d6bedb660c80b2cfd13cddf71e913f4347e))
|
||||
|
||||
## [0.0.2-develop.2](https://git.lumeweb.com/LumeWeb/peer-discovery-irc/compare/v0.0.2-develop.1...v0.0.2-develop.2) (2023-07-03)
|
||||
|
||||
## [0.0.2-develop.1](https://git.lumeweb.com/LumeWeb/peer-discovery-irc/compare/v0.0.1...v0.0.2-develop.1) (2023-07-01)
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
{
|
||||
"name": "@lumeweb/peer-discovery-irc",
|
||||
"version": "0.0.2-develop.2",
|
||||
"version": "0.0.2-develop.3",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "@lumeweb/peer-discovery-irc",
|
||||
"version": "0.0.2-develop.2",
|
||||
"version": "0.0.2-develop.3",
|
||||
"dependencies": {
|
||||
"@ctrl/irc": "^2.1.1",
|
||||
"@lumeweb/libpeerdiscovery": "^0.1.0-develop.1",
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@lumeweb/peer-discovery-irc",
|
||||
"version": "0.0.2-develop.2",
|
||||
"version": "0.0.2-develop.3",
|
||||
"main": "lib/index.js",
|
||||
"type": "module",
|
||||
"repository": {
|
||||
|
|
|
@ -4,7 +4,7 @@ import jsonStringify from "json-stringify-deterministic";
|
|||
import { ed25519 } from "@noble/curves/ed25519";
|
||||
import { ripemd160 } from "@noble/hashes/ripemd160";
|
||||
import { sha256 } from "@noble/hashes/sha256";
|
||||
import { bytesToHex, hexToBytes } from "@noble/hashes/utils";
|
||||
import { bytesToHex, hexToBytes, utf8ToBytes } from "@noble/hashes/utils";
|
||||
|
||||
const hash160 = (data: Uint8Array) => ripemd160(sha256(data));
|
||||
|
||||
|
@ -58,7 +58,7 @@ export default async (
|
|||
if (
|
||||
!ed25519.verify(
|
||||
hexToBytes(json.signature as string),
|
||||
hexToBytes(verifyPayload),
|
||||
utf8ToBytes(verifyPayload),
|
||||
pubkey,
|
||||
)
|
||||
) {
|
||||
|
|
Loading…
Reference in New Issue