Compare commits
2 Commits
v0.2.0-dev
...
v0.2.0-dev
Author | SHA1 | Date |
---|---|---|
semantic-release-bot | 5445337ba3 | |
Derrick Hammer | 37fd7543af |
|
@ -1,3 +1,10 @@
|
|||
# [0.2.0-develop.13](https://git.lumeweb.com/LumeWeb/libportal/compare/v0.2.0-develop.12...v0.2.0-develop.13) (2023-07-18)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* switch to using utf8ToBytes ([37fd754](https://git.lumeweb.com/LumeWeb/libportal/commit/37fd7543afe5f06e3193e24cb2c3390c848faadb))
|
||||
|
||||
# [0.2.0-develop.12](https://git.lumeweb.com/LumeWeb/libportal/compare/v0.2.0-develop.11...v0.2.0-develop.12) (2023-07-08)
|
||||
|
||||
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
{
|
||||
"name": "@lumeweb/libportal",
|
||||
"version": "0.2.0-develop.12",
|
||||
"version": "0.2.0-develop.13",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "@lumeweb/libportal",
|
||||
"version": "0.2.0-develop.12",
|
||||
"version": "0.2.0-develop.13",
|
||||
"dependencies": {
|
||||
"@lumeweb/node-library-preset": "git+https://git.lumeweb.com/LumeWeb/node-library-preset.git",
|
||||
"@noble/curves": "^1.1.0",
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@lumeweb/libportal",
|
||||
"version": "0.2.0-develop.12",
|
||||
"version": "0.2.0-develop.13",
|
||||
"main": "lib/index.js",
|
||||
"module": "lib/index.mjs",
|
||||
"types": "lib/index.d.ts",
|
||||
|
|
|
@ -26,6 +26,7 @@ import {
|
|||
PubkeyChallengeResponse,
|
||||
} from "./responses/auth.js";
|
||||
import isNode from "detect-node";
|
||||
import { utf8ToBytes } from "@noble/curves/abstract/utils";
|
||||
|
||||
type NodeReadableStreamType = typeof import("stream").Readable;
|
||||
|
||||
|
@ -148,7 +149,7 @@ export class Client {
|
|||
);
|
||||
|
||||
const signature = ed.sign(
|
||||
new TextEncoder().encode(challenge.challenge),
|
||||
utf8ToBytes(challenge.challenge),
|
||||
this._options.privateKey,
|
||||
);
|
||||
|
||||
|
|
Loading…
Reference in New Issue