@mainsail/crypto-address-base58 0.0.1-evm.2 → 0.0.1-evm.21
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/distribution/address.factory.d.ts +0 -1
- package/distribution/address.factory.d.ts.map +1 -1
- package/distribution/address.factory.js +3 -3
- package/distribution/address.factory.js.map +1 -1
- package/distribution/index.d.ts +1 -0
- package/distribution/index.d.ts.map +1 -1
- package/distribution/index.js +22 -6
- package/distribution/index.js.map +1 -1
- package/distribution/schemas.d.ts +1 -1
- package/distribution/schemas.js +2 -2
- package/distribution/schemas.js.map +1 -1
- package/distribution/serializer.d.ts +0 -1
- package/distribution/serializer.d.ts.map +1 -1
- package/package.json +12 -12
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"address.factory.d.ts","sourceRoot":"","sources":["../source/address.factory.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"address.factory.d.ts","sourceRoot":"","sources":["../source/address.factory.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAe,MAAM,qBAAqB,CAAC;AAI7D,qBACa,cAAe,YAAW,SAAS,CAAC,MAAM,CAAC,cAAc;;IAErE,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAkC;IAIhE,OAAO,CAAC,QAAQ,CAAC,cAAc,CAAmC;IAIlE,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAAqC;IAEzD,YAAY,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAIjD,aAAa,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAUjD,OAAO,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAIrC,uBAAuB,CAAC,KAAK,EAAE,SAAS,CAAC,MAAM,CAAC,mBAAmB,GAAG,OAAO,CAAC,MAAM,CAAC;IAIrF,cAAc,CAAC,UAAU,EAAE,SAAS,CAAC,MAAM,CAAC,OAAO,GAAG,OAAO,CAAC,MAAM,CAAC;IAIrE,UAAU,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAI3C,QAAQ,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAY1C,QAAQ,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;CAyBxD"}
|
@@ -27,7 +27,7 @@ let AddressFactory = class AddressFactory {
|
|
27
27
|
async fromPublicKey(publicKey) {
|
28
28
|
const buffer = RIPEMD160.digest(Buffer.from(publicKey, "hex"));
|
29
29
|
const payload = Buffer.alloc(21);
|
30
|
-
payload.writeUInt8(this.configuration.
|
30
|
+
payload.writeUInt8(this.configuration.get("network.pubKeyHash"), 0);
|
31
31
|
buffer.copy(payload, 1);
|
32
32
|
return __classPrivateFieldGet(this, _AddressFactory_instances, "m", _AddressFactory_encodeCheck).call(this, payload);
|
33
33
|
}
|
@@ -45,7 +45,7 @@ let AddressFactory = class AddressFactory {
|
|
45
45
|
}
|
46
46
|
async toBuffer(address) {
|
47
47
|
const result = __classPrivateFieldGet(this, _AddressFactory_instances, "m", _AddressFactory_decodeCheck).call(this, address);
|
48
|
-
const pubKeyHash = this.configuration.
|
48
|
+
const pubKeyHash = this.configuration.get("network.pubKeyHash");
|
49
49
|
if (result[0] !== pubKeyHash) {
|
50
50
|
throw new Error(`Expected address network byte ${pubKeyHash}, but got ${result[0]}.`);
|
51
51
|
}
|
@@ -53,7 +53,7 @@ let AddressFactory = class AddressFactory {
|
|
53
53
|
}
|
54
54
|
async validate(address) {
|
55
55
|
try {
|
56
|
-
return __classPrivateFieldGet(this, _AddressFactory_instances, "m", _AddressFactory_decodeCheck).call(this, address)[0] === this.configuration.
|
56
|
+
return __classPrivateFieldGet(this, _AddressFactory_instances, "m", _AddressFactory_decodeCheck).call(this, address)[0] === this.configuration.get("network.pubKeyHash");
|
57
57
|
}
|
58
58
|
catch {
|
59
59
|
return false;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"address.factory.js","sourceRoot":"","sources":["../source/address.factory.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AACjE,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAC7D,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAC7C,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AAG1B,IAAM,cAAc,GAApB,MAAM,cAAc;IAApB;;IA+EP,CAAC;IAnEO,KAAK,CAAC,YAAY,CAAC,UAAkB;QAC3C,OAAO,IAAI,CAAC,aAAa,CAAC,CAAC,MAAM,IAAI,CAAC,cAAc,CAAC,YAAY,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC;IAC3F,CAAC;IAEM,KAAK,CAAC,aAAa,CAAC,SAAiB;QAC3C,MAAM,MAAM,GAAW,SAAS,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,SAAS,EAAE,KAAK,CAAC,CAAC,CAAC;QACvE,MAAM,OAAO,GAAW,MAAM,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;QAEzC,OAAO,CAAC,UAAU,CAAC,IAAI,CAAC,aAAa,CAAC,
|
1
|
+
{"version":3,"file":"address.factory.js","sourceRoot":"","sources":["../source/address.factory.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AACjE,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAC7D,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAC7C,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AAG1B,IAAM,cAAc,GAApB,MAAM,cAA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C,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,EAAE,CAAC;QACtE,MAAM,IAAI,KAAK,CAAC,qCAAqC,CAAC,CAAC;IACxD,CAAC;IAED,OAAO,OAAO,CAAC;AAChB,CAAC;AA5EgB;IADhB,MAAM,CAAC,WAAW,CAAC,YAAY,CAAC,aAAa,CAAC;;qDACiB;AAI/C;IAFhB,MAAM,CAAC,WAAW,CAAC,YAAY,CAAC,QAAQ,CAAC,OAAO,CAAC,OAAO,CAAC;IACzD,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAC;;sDACyC;AAIjD;IAFhB,MAAM,CAAC,WAAW,CAAC,YAAY,CAAC,QAAQ,CAAC,SAAS,CAAC,OAAO,CAAC;IAC3D,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAC;;wDAC6C;AAV1D,cAAc;IAD1B,UAAU,EAAE;GACA,cAAc,CA+E1B"}
|
package/distribution/index.d.ts
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../source/index.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../source/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAM7C,cAAc,sBAAsB,CAAC;AACrC,cAAc,cAAc,CAAC;AAE7B,qBACa,eAAgB,SAAQ,SAAS,CAAC,eAAe;;IAChD,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC;CAiBtC"}
|
package/distribution/index.js
CHANGED
@@ -1,30 +1,46 @@
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
6
|
+
};
|
1
7
|
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
2
8
|
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
3
9
|
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
4
10
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
5
11
|
};
|
6
12
|
var _ServiceProvider_instances, _ServiceProvider_registerSchemas;
|
13
|
+
import { injectable } from "@mainsail/container";
|
7
14
|
import { Identifiers } from "@mainsail/contracts";
|
8
15
|
import { Providers } from "@mainsail/kernel";
|
9
16
|
import { AddressFactory } from "./address.factory.js";
|
10
17
|
import { schemas } from "./schemas.js";
|
11
18
|
import { AddressSerializer } from "./serializer.js";
|
19
|
+
export * from "./address.factory.js";
|
12
20
|
export * from "./schemas.js";
|
13
|
-
|
21
|
+
let ServiceProvider = class ServiceProvider extends Providers.ServiceProvider {
|
14
22
|
constructor() {
|
15
23
|
super(...arguments);
|
16
24
|
_ServiceProvider_instances.add(this);
|
17
25
|
}
|
18
26
|
async register() {
|
19
|
-
this.app.bind(Identifiers.Cryptography.Identity.
|
20
|
-
this.app.bind(Identifiers.Cryptography.Identity.
|
21
|
-
this.app
|
27
|
+
this.app.bind(Identifiers.Cryptography.Legacy.Identity.AddressSize).toConstantValue(21);
|
28
|
+
this.app.bind(Identifiers.Cryptography.Legacy.Identity.AddressFactory).to(AddressFactory).inSingletonScope();
|
29
|
+
this.app
|
30
|
+
.bind(Identifiers.Cryptography.Legacy.Identity.AddressSerializer)
|
31
|
+
.to(AddressSerializer)
|
32
|
+
.inSingletonScope();
|
22
33
|
__classPrivateFieldGet(this, _ServiceProvider_instances, "m", _ServiceProvider_registerSchemas).call(this);
|
23
34
|
}
|
24
|
-
}
|
25
|
-
_ServiceProvider_instances = new WeakSet()
|
35
|
+
};
|
36
|
+
_ServiceProvider_instances = new WeakSet();
|
37
|
+
_ServiceProvider_registerSchemas = function _ServiceProvider_registerSchemas() {
|
26
38
|
for (const schema of Object.values(schemas)) {
|
27
39
|
this.app.get(Identifiers.Cryptography.Validator).addSchema(schema);
|
28
40
|
}
|
29
41
|
};
|
42
|
+
ServiceProvider = __decorate([
|
43
|
+
injectable()
|
44
|
+
], ServiceProvider);
|
45
|
+
export { ServiceProvider };
|
30
46
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../source/index.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../source/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAa,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAC7D,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAE7C,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAEpD,cAAc,sBAAsB,CAAC;AACrC,cAAc,cAAc,CAAC;AAGtB,IAAM,eAAe,GAArB,MAAM,eAAgB,SAAQ,SAAS,CAAC,eAAe;IAAvD;;;IAkBP,CAAC;IAjBO,KAAK,CAAC,QAAQ;QACpB,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,WAAW,CAAC,YAAY,CAAC,MAAM,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC,eAAe,CAAC,EAAE,CAAC,CAAC;QAExF,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,WAAW,CAAC,YAAY,CAAC,MAAM,CAAC,QAAQ,CAAC,cAAc,CAAC,CAAC,EAAE,CAAC,cAAc,CAAC,CAAC,gBAAgB,EAAE,CAAC;QAC7G,IAAI,CAAC,GAAG;aACN,IAAI,CAAC,WAAW,CAAC,YAAY,CAAC,MAAM,CAAC,QAAQ,CAAC,iBAAiB,CAAC;aAChE,EAAE,CAAC,iBAAiB,CAAC;aACrB,gBAAgB,EAAE,CAAC;QAErB,uBAAA,IAAI,oEAAiB,MAArB,IAAI,CAAmB,CAAC;IACzB,CAAC;CAOD,CAAA;;;IAJC,KAAK,MAAM,MAAM,IAAI,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE,CAAC;QAC7C,IAAI,CAAC,GAAG,CAAC,GAAG,CAA6B,WAAW,CAAC,YAAY,CAAC,SAAS,CAAC,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;IAChG,CAAC;AACF,CAAC;AAjBW,eAAe;IAD3B,UAAU,EAAE;GACA,eAAe,CAkB3B"}
|
package/distribution/schemas.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"schemas.js","sourceRoot":"","sources":["../source/schemas.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,OAAO,GAAG;IACtB,
|
1
|
+
{"version":3,"file":"schemas.js","sourceRoot":"","sources":["../source/schemas.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,OAAO,GAAG;IACtB,aAAa,EAAE;QACd,GAAG,EAAE,eAAe;QACpB,KAAK,EAAE;YACN;gBACC,SAAS,EAAE,EAAE;gBACb,SAAS,EAAE,EAAE;gBACb,OAAO,EAAE,iEAAiE;aAC1E;SACD;QACD,IAAI,EAAE,QAAQ;KACd;CACD,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"serializer.d.ts","sourceRoot":"","sources":["../source/serializer.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"serializer.d.ts","sourceRoot":"","sources":["../source/serializer.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAE7C,qBACa,iBAAkB,YAAW,SAAS,CAAC,MAAM,CAAC,iBAAiB;IACpE,SAAS,CAAC,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,GAAG,IAAI;IAIpD,WAAW,CAAC,MAAM,EAAE,UAAU,GAAG,MAAM;CAG9C"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@mainsail/crypto-address-base58",
|
3
|
-
"version": "0.0.1-evm.
|
3
|
+
"version": "0.0.1-evm.21",
|
4
4
|
"description": "Base58 address derivation for the Mainsail blockchain",
|
5
5
|
"license": "GPL-3.0-only",
|
6
6
|
"contributors": [],
|
@@ -13,19 +13,19 @@
|
|
13
13
|
"dependencies": {
|
14
14
|
"bcrypto": "5.5.2",
|
15
15
|
"bstring": "0.3.9",
|
16
|
-
"@mainsail/
|
17
|
-
"@mainsail/
|
18
|
-
"@mainsail/
|
19
|
-
"@mainsail/
|
16
|
+
"@mainsail/contracts": "0.0.1-evm.21",
|
17
|
+
"@mainsail/container": "0.0.1-evm.21",
|
18
|
+
"@mainsail/utils": "0.0.1-evm.21",
|
19
|
+
"@mainsail/kernel": "0.0.1-evm.21"
|
20
20
|
},
|
21
21
|
"devDependencies": {
|
22
22
|
"bip39": "3.1.0",
|
23
|
-
"uvu": "
|
24
|
-
"@mainsail/crypto-config": "0.0.1-evm.
|
25
|
-
"@mainsail/crypto-key-pair-ecdsa": "0.0.1-evm.
|
26
|
-
"@mainsail/crypto-
|
27
|
-
"@mainsail/
|
28
|
-
"@mainsail/
|
23
|
+
"uvu": "0.5.6",
|
24
|
+
"@mainsail/crypto-config": "0.0.1-evm.21",
|
25
|
+
"@mainsail/crypto-key-pair-ecdsa": "0.0.1-evm.21",
|
26
|
+
"@mainsail/crypto-validation": "0.0.1-evm.21",
|
27
|
+
"@mainsail/validation": "0.0.1-evm.21",
|
28
|
+
"@mainsail/crypto-key-pair-schnorr": "0.0.1-evm.21"
|
29
29
|
},
|
30
30
|
"engines": {
|
31
31
|
"node": ">=20.x"
|
@@ -36,7 +36,7 @@
|
|
36
36
|
"clean": "del distribution",
|
37
37
|
"release": "pnpm publish --access public",
|
38
38
|
"test": "pnpm run uvu source .test.ts",
|
39
|
-
"test:coverage": "c8 pnpm run test",
|
39
|
+
"test:coverage": "c8 -r=text -r=lcov --all pnpm run test",
|
40
40
|
"test:coverage:html": "c8 -r html --all pnpm run test",
|
41
41
|
"test:file": "pnpm run uvu source",
|
42
42
|
"uvu": "tsx --tsconfig ../../tsconfig.test.json ./node_modules/uvu/bin.js"
|