@meshsdk/core-cst 1.7.16 → 1.7.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +3 -8
- package/dist/index.js +3 -8
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -1130,13 +1130,6 @@ var DRepID = import_core.Cardano.DRepID;
|
|
|
1130
1130
|
var DRep = import_core.Serialization.DRep;
|
|
1131
1131
|
var StakeCredentialStatus = import_core.Cardano.StakeCredentialStatus;
|
|
1132
1132
|
|
|
1133
|
-
// src/message-signing/check-signature.ts
|
|
1134
|
-
var import_bip32ed25519 = require("@stricahq/bip32ed25519");
|
|
1135
|
-
|
|
1136
|
-
// src/message-signing/cose-sign1.ts
|
|
1137
|
-
var import_buffer = require("buffer");
|
|
1138
|
-
var import_blakejs = __toESM(require_blakejs(), 1);
|
|
1139
|
-
|
|
1140
1133
|
// src/stricahq/bip32ed25519/wrapper.ts
|
|
1141
1134
|
var cjsBip32ed25519 = __toESM(require("@stricahq/bip32ed25519"), 1);
|
|
1142
1135
|
var bip32ed25519 = cjsBip32ed25519;
|
|
@@ -1154,6 +1147,8 @@ var StricaEncoder = exportedCbors.Encoder;
|
|
|
1154
1147
|
var StricaDecoder = exportedCbors.Decoder;
|
|
1155
1148
|
|
|
1156
1149
|
// src/message-signing/cose-sign1.ts
|
|
1150
|
+
var import_buffer = require("buffer");
|
|
1151
|
+
var import_blakejs = __toESM(require_blakejs(), 1);
|
|
1157
1152
|
var CoseSign1 = class _CoseSign1 {
|
|
1158
1153
|
protectedMap;
|
|
1159
1154
|
unProtectedMap;
|
|
@@ -1283,7 +1278,7 @@ var checkSignature = (data, { key, signature }, address) => {
|
|
|
1283
1278
|
if (address) {
|
|
1284
1279
|
let network = NetworkId.Mainnet;
|
|
1285
1280
|
const paymentAddress = BaseAddress.fromAddress(Address.fromBech32(address));
|
|
1286
|
-
const coseSign1PublicKey = new
|
|
1281
|
+
const coseSign1PublicKey = new StricaBip32PublicKey(publicKeyBuffer);
|
|
1287
1282
|
const credential = {
|
|
1288
1283
|
hash: Hash28ByteBase162.fromEd25519KeyHashHex(
|
|
1289
1284
|
Ed25519KeyHashHex2(
|
package/dist/index.js
CHANGED
|
@@ -970,13 +970,6 @@ var DRepID = Cardano.DRepID;
|
|
|
970
970
|
var DRep = Serialization.DRep;
|
|
971
971
|
var StakeCredentialStatus = Cardano.StakeCredentialStatus;
|
|
972
972
|
|
|
973
|
-
// src/message-signing/check-signature.ts
|
|
974
|
-
import { Bip32PublicKey } from "@stricahq/bip32ed25519";
|
|
975
|
-
|
|
976
|
-
// src/message-signing/cose-sign1.ts
|
|
977
|
-
var import_blakejs = __toESM(require_blakejs(), 1);
|
|
978
|
-
import { Buffer as Buffer2 } from "buffer";
|
|
979
|
-
|
|
980
973
|
// src/stricahq/bip32ed25519/wrapper.ts
|
|
981
974
|
import * as cjsBip32ed25519 from "@stricahq/bip32ed25519";
|
|
982
975
|
var bip32ed25519 = cjsBip32ed25519;
|
|
@@ -994,6 +987,8 @@ var StricaEncoder = exportedCbors.Encoder;
|
|
|
994
987
|
var StricaDecoder = exportedCbors.Decoder;
|
|
995
988
|
|
|
996
989
|
// src/message-signing/cose-sign1.ts
|
|
990
|
+
var import_blakejs = __toESM(require_blakejs(), 1);
|
|
991
|
+
import { Buffer as Buffer2 } from "buffer";
|
|
997
992
|
var CoseSign1 = class _CoseSign1 {
|
|
998
993
|
protectedMap;
|
|
999
994
|
unProtectedMap;
|
|
@@ -1123,7 +1118,7 @@ var checkSignature = (data, { key, signature }, address) => {
|
|
|
1123
1118
|
if (address) {
|
|
1124
1119
|
let network = NetworkId.Mainnet;
|
|
1125
1120
|
const paymentAddress = BaseAddress.fromAddress(Address.fromBech32(address));
|
|
1126
|
-
const coseSign1PublicKey = new
|
|
1121
|
+
const coseSign1PublicKey = new StricaBip32PublicKey(publicKeyBuffer);
|
|
1127
1122
|
const credential = {
|
|
1128
1123
|
hash: Hash28ByteBase162.fromEd25519KeyHashHex(
|
|
1129
1124
|
Ed25519KeyHashHex2(
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@meshsdk/core-cst",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.18",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./dist/index.cjs",
|
|
6
6
|
"browser": "./dist/index.js",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"@harmoniclabs/cbor": "1.3.0",
|
|
43
43
|
"@harmoniclabs/plutus-data": "1.2.4",
|
|
44
44
|
"@harmoniclabs/uplc": "1.2.4",
|
|
45
|
-
"@meshsdk/common": "1.7.
|
|
45
|
+
"@meshsdk/common": "1.7.18",
|
|
46
46
|
"@stricahq/bip32ed25519": "^1.1.0",
|
|
47
47
|
"@stricahq/cbors": "^1.0.3",
|
|
48
48
|
"pbkdf2": "^3.1.2"
|