Compare commits

...

3 Commits

Author SHA1 Message Date
semantic-release-bot 33da202f99 chore(release): 0.0.2-develop.3 [skip ci]
## [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](a6ec4d6bed))
2023-07-03 21:33:51 +00:00
Derrick Hammer 17b9af7e71
Merge remote-tracking branch 'origin/develop' into develop 2023-07-03 17:32:46 -04:00
Derrick Hammer a6ec4d6bed
fix: use utf8ToBytes 2023-07-03 17:32:40 -04:00
4 changed files with 12 additions and 5 deletions

View File

@ -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)

4
npm-shrinkwrap.json generated
View File

@ -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",

View File

@ -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": {

View File

@ -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,
)
) {