Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
129 commits
Select commit Hold shift + click to select a range
34b6f94
Add beginnings of GenericRequest class
michaeltout Sep 12, 2025
d7fb2aa
Update GenericRequest to add signaturedata and add tests
michaeltout Sep 15, 2025
8209741
Squashed commit of the following:
monkins1010 Sep 25, 2025
41cd043
Initial Object Creation
monkins1010 Sep 25, 2025
4635942
Updates to Object names
monkins1010 Sep 25, 2025
dc3eaa8
Update for new Objects for Generic request
monkins1010 Sep 29, 2025
6f45724
Checkpoint: Add OrdinalVdxfObject as new type and partially implement…
michaeltout Sep 30, 2025
8a87161
Update Informationrequest to camalCase
monkins1010 Oct 8, 2025
bc06415
Wrap up OrdinalVdxfObjectClass
michaeltout Oct 8, 2025
309996e
Rename properties in OrdinalVdxfObject to camelCase
michaeltout Oct 8, 2025
1f8c008
Merge remote-tracking branch 'origin/generic-signed-request' into Gen…
monkins1010 Oct 8, 2025
9c5f4e3
Wrap up generic request wrapper except for signing component
michaeltout Oct 9, 2025
39f3a5b
Refactor getDetailsHash to use data in this.signature
michaeltout Oct 10, 2025
07bf02f
Fix casing on createdAt and vdxfKey for json objects in OrdinalVdxfOb…
michaeltout Oct 10, 2025
65596b6
Add testnet flag to generic request and change deeplink format
michaeltout Oct 10, 2025
6ba9ec0
Updates to meeting, AppEncryptionRequestDetails and RequestUserData
monkins1010 Oct 16, 2025
169f20f
updates
monkins1010 Oct 18, 2025
6027881
Updates to meeting 2
monkins1010 Oct 20, 2025
72325fb
Added placeholder for signdata
monkins1010 Oct 20, 2025
0c07469
Add salt to generic request and bidirectional map to automatically op…
michaeltout Oct 20, 2025
0219201
Merge types to send data to be signed and to recieved signed data
monkins1010 Oct 20, 2025
dda68f3
Merge remote-tracking branch 'origin/generic-signed-request' into Gen…
monkins1010 Oct 20, 2025
9783a1e
Remove superceeded items
monkins1010 Oct 20, 2025
9b703f8
Updates with tests and names
monkins1010 Oct 20, 2025
db1678e
Update login tests and add interfaces to request objects
monkins1010 Oct 20, 2025
bd90966
Add login Details Ordinal type
monkins1010 Oct 20, 2025
61e1daf
delete old tests
monkins1010 Oct 20, 2025
942d44a
Sync to master dist
monkins1010 Oct 21, 2025
515654b
add compactaddressidobject test
monkins1010 Oct 21, 2025
d9bc342
Add VerifiableSignatureData
michaeltout Oct 23, 2025
379a315
Replace xor with or if word "set" is used instead of "toggle"
michaeltout Oct 23, 2025
a8c2438
Merge remote-tracking branch 'origin/generic-signed-request' into Gen…
monkins1010 Oct 24, 2025
2ecf781
Updates to comments #1
monkins1010 Oct 25, 2025
20f3610
Update #2 to comments
monkins1010 Oct 26, 2025
f5f2b65
Add VerifiableSignature into dist
monkins1010 Oct 26, 2025
66519bd
Updates to Comments #3
monkins1010 Oct 28, 2025
6a9f83b
Add GenericResponse type with requestHash and requestHashType and add…
michaeltout Oct 29, 2025
85c96fd
Move vdxf ordinal definitions into src/constants/ordinals
michaeltout Oct 29, 2025
e2b6abf
Restructure exports for OrdinalVdxfObject and associated types, chang…
michaeltout Oct 30, 2025
8445bc7
Standardize naming where possible in new OrdinalVdxf objects
michaeltout Oct 30, 2025
fa476db
Remove deprecated IdentityUpdateEnvelope
michaeltout Oct 30, 2025
8dd8bb3
Remove salt from identity update response/request details due to its …
michaeltout Oct 30, 2025
1e80793
Change unnecessary varints to varuints in PartialSignData and Identit…
michaeltout Nov 4, 2025
01e0372
UPdates to flags and labels
monkins1010 Nov 8, 2025
11c4be8
Merge remote-tracking branch 'origin/generic-signed-request' into Gen…
monkins1010 Nov 8, 2025
3da4555
merge updates
monkins1010 Nov 8, 2025
1ad274a
merge fix from new naming
monkins1010 Nov 10, 2025
a3612b5
Fix type
monkins1010 Nov 10, 2025
7e95a86
Update Acronym
monkins1010 Nov 10, 2025
c3eced3
Add VerusPay v4 and accomodating functions to VerusPayInvoiceDetails …
michaeltout Nov 11, 2025
8e527c4
Temp remove tests of Loginrequest for merge
monkins1010 Nov 11, 2025
ba8599a
Merge pull request #15 from monkins1010/GenericRequestItems
michaeltout Nov 11, 2025
6bf4aa0
Add build files from PR
michaeltout Nov 12, 2025
ec6d0c1
Wrap ProvisionIdentityDetails and LoginRequestDetails in GenericRequest
michaeltout Nov 12, 2025
3e33dde
Wrap AppEncryptionRequestDetails in Ordinal VDXF object
michaeltout Nov 12, 2025
909ec24
Add LoginResponseDetails
michaeltout Nov 14, 2025
d3dcead
Remove unecessary flag from IdentityUpdateResponseDetails
michaeltout Nov 19, 2025
d2d7857
Add function to get raw sha256 with sig to GenericEnvelope
michaeltout Nov 19, 2025
25f8c86
Update build files
michaeltout Nov 19, 2025
3bb5f30
Add TODO for TYPE_Z_ADDR_REF
michaeltout Nov 19, 2025
6bdc083
Add in ordinal objects and tests
monkins1010 Nov 19, 2025
90e572e
Merge branch 'generic-signed-request' of https://github.com/michaelto…
monkins1010 Nov 19, 2025
3ca2814
Fix wording msitake
monkins1010 Nov 19, 2025
433de02
Correct app ancryption request name to omit "details" because it does…
michaeltout Nov 20, 2025
f6fba28
Export vdxf classes
michaeltout Nov 20, 2025
ffd5a2c
Add error thrown from VerifiableSignatureData if non implemented feat…
michaeltout Nov 20, 2025
91bd0df
Remove createdAt from objects designed to be used in GenericEnvelope,…
michaeltout Nov 20, 2025
da92fd5
Updates to comments
monkins1010 Nov 21, 2025
5ba45d0
Merge remote-tracking branch 'origin/generic-signed-request' into ord…
monkins1010 Nov 21, 2025
f3db47e
Fix merge conflicts
monkins1010 Nov 21, 2025
764dbda
Change objects back to details
monkins1010 Nov 21, 2025
fce8e8c
Move static methods out of GenericEnvelope and into GenericRequest an…
michaeltout Nov 21, 2025
c74dc50
fix encryption key
monkins1010 Nov 21, 2025
5b85ca9
Update name of generic deeplink type to generic envelope
michaeltout Nov 21, 2025
45210de
Merge pull request #16 from monkins1010/ordinalintegration
michaeltout Nov 21, 2025
a4b96c0
Rename DataResponse, push build files
michaeltout Nov 21, 2025
d31508f
Make a number of VerifiableSignatureDataInterface parameters optional…
michaeltout Nov 21, 2025
09d6410
Change GenericRequest deeplink URL to new format
michaeltout Nov 21, 2025
eab6596
Move toWalletDeeplinkUri and toQrString out of GenericEnvelope and in…
michaeltout Nov 21, 2025
c250293
Add signatureVersion to VerifiableSignatureData
michaeltout Nov 21, 2025
f3bf36a
Rename getDetailsHash to getDetailsIdentitySignatureHash in GenericEn…
michaeltout Nov 21, 2025
9a27b73
add app encryption response
monkins1010 Nov 21, 2025
6592128
Upadtes to encryption
monkins1010 Nov 26, 2025
675c7aa
Revert "Updates to encryption"
monkins1010 Nov 26, 2025
37f5548
Revert "Revert "Updates to encryption""
monkins1010 Nov 26, 2025
087da8f
Merge pull request #17 from monkins1010/synced
michaeltout Nov 27, 2025
d9cc8da
Add test for failing case where GenericEnvelopes would have different…
michaeltout Nov 27, 2025
b83e277
Push build files
michaeltout Nov 27, 2025
d9b49b9
add signature data
monkins1010 Nov 27, 2025
2344290
Merge branch 'generic-signed-request' of https://github.com/michaelto…
monkins1010 Nov 27, 2025
eaaa449
build dist
monkins1010 Nov 27, 2025
77d87cb
remove statements
monkins1010 Nov 27, 2025
09f339f
Add fromSignatureData to VerifiableSignatureData function
monkins1010 Nov 28, 2025
d086646
Add tag to VerusPayInvoiceDetails in the form of x addr
michaeltout Nov 28, 2025
d4d260d
Add test for compact address object instance using data key
michaeltout Nov 28, 2025
e27d628
Merge remote-tracking branch 'origin/generic-signed-request' into synced
monkins1010 Nov 28, 2025
8a9dc5a
updates for clijson from signdata
monkins1010 Nov 28, 2025
0b952cf
Merge pull request #18 from monkins1010/synced
michaeltout Dec 1, 2025
6c1ce39
Remove console log
michaeltout Dec 1, 2025
f88e11e
Replace callbackURI with responseURI in LoginRequestDetails
michaeltout Dec 1, 2025
eb71c00
Rename LoginRequestDetails and LoginResponseDetails to Authentication…
michaeltout Dec 1, 2025
0b65ce5
Capitalize VDXF to match new acronym naming format in filenames
michaeltout Dec 1, 2025
4eec160
Capitalize VDXF to match new acronym naming format within files
michaeltout Dec 1, 2025
53eee24
Remove build files
michaeltout Dec 1, 2025
b30058f
Re-add build files
michaeltout Dec 1, 2025
4ba80ac
Add ResponseURI to GenericRequest
michaeltout Dec 1, 2025
6469309
Add requestID to GenericEnvelope
michaeltout Dec 1, 2025
b8dab71
Export everything from VerifiableSignatureData
michaeltout Dec 2, 2025
d63d07e
Export deeplink constants
michaeltout Dec 8, 2025
25ed24b
Add test for GenericRequest with invoice
michaeltout Dec 9, 2025
dd20971
Move appOrDelegatedID into GenericEnvelope + typo fixes
michaeltout Dec 10, 2025
1ae9055
Rename ResponseUri to ResponseURI
michaeltout Dec 12, 2025
be54c37
Add getIAddressKey to OrdinalVDXFObject and fix issue with unrecogniz…
michaeltout Dec 12, 2025
5f23048
Fix keys for non response/request types not to include "detail"
michaeltout Dec 15, 2025
d75bb20
Add generic request deeplink vdxf key
michaeltout Dec 17, 2025
2f2fa80
Fix JSON capitalization in AuthenticationRequestDetails
michaeltout Jan 8, 2026
2fc5860
Remove responseURIs from within AuthenticationRequestDetails
michaeltout Jan 9, 2026
ce46052
Add GENERIC_RESPONSE_DEEPLINK_VDXF_KEY
michaeltout Jan 9, 2026
bf71d85
Remove responseURIs from IdentityUpdateRequestDetails
michaeltout Jan 11, 2026
3609586
Remove testnet flag from IdentityUpdateRequestDetails
michaeltout Jan 12, 2026
77faa16
Add vdxftag to SendCurrencyRequest
michaeltout Jan 27, 2026
deb6b21
Tweak type for Compact X Addresses
michaeltout Jan 27, 2026
e4aecbb
Merge branch 'master' into generic-signed-request
michaeltout Feb 2, 2026
799ffea
Initialize data in DataPacketResponse constructor (if not present) to…
michaeltout Feb 3, 2026
457d382
Re-add vdxf keys deleted by merge mistake
michaeltout Feb 3, 2026
91f68b5
Push build files for re-adding deleted keys
michaeltout Feb 3, 2026
33f60e5
Change requestID in authentication request/response to be CompactIAdd…
michaeltout Feb 3, 2026
6d19089
Make requestID optional in AuthenticationRequestDetails
michaeltout Feb 4, 2026
bd15754
Use CompactIAddressObject in place of CompactAddressObject and string…
michaeltout Feb 5, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions dist/api/classes/SendCurrency/SendCurrencyRequest.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ type output = {
preconvert?: boolean;
burn?: boolean;
mintnew?: boolean;
vdxftag?: string;
};
export declare class SendCurrencyRequest extends ApiRequest {
fromaddress: string;
Expand Down
2 changes: 2 additions & 0 deletions dist/constants/deeplink.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export declare const DEEPLINK_PROTOCOL_URL_STRING = "verus";
export declare const DEEPLINK_PROTOCOL_URL_CURRENT_VERSION: import("bn.js");
6 changes: 6 additions & 0 deletions dist/constants/deeplink.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.DEEPLINK_PROTOCOL_URL_CURRENT_VERSION = exports.DEEPLINK_PROTOCOL_URL_STRING = void 0;
const bn_js_1 = require("bn.js");
exports.DEEPLINK_PROTOCOL_URL_STRING = "verus";
exports.DEEPLINK_PROTOCOL_URL_CURRENT_VERSION = new bn_js_1.BN(1, 10);
15 changes: 15 additions & 0 deletions dist/constants/ordinals/ordinals.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
export declare const VDXF_OBJECT_RESERVED_BYTE_I_ADDR: import("bn.js");
export declare const VDXF_OBJECT_RESERVED_BYTE_VDXF_ID_STRING: import("bn.js");
export declare const VDXF_OBJECT_RESERVED_BYTE_ID_OR_CURRENCY: import("bn.js");
export declare const VDXF_ORDINAL_DATA_DESCRIPTOR: import("bn.js");
export declare const VDXF_ORDINAL_VERUSPAY_INVOICE: import("bn.js");
export declare const VDXF_ORDINAL_AUTHENTICATION_REQUEST: import("bn.js");
export declare const VDXF_ORDINAL_AUTHENTICATION_RESPONSE: import("bn.js");
export declare const VDXF_ORDINAL_IDENTITY_UPDATE_REQUEST: import("bn.js");
export declare const VDXF_ORDINAL_IDENTITY_UPDATE_RESPONSE: import("bn.js");
export declare const VDXF_ORDINAL_PROVISION_IDENTITY_DETAILS: import("bn.js");
export declare const VDXF_ORDINAL_APP_ENCRYPTION_REQUEST: import("bn.js");
export declare const VDXF_ORDINAL_APP_ENCRYPTION_RESPONSE: import("bn.js");
export declare const VDXF_ORDINAL_USER_SPECIFIC_DATA_PACKET: import("bn.js");
export declare const VDXF_ORDINAL_USER_DATA_REQUEST: import("bn.js");
export declare const VDXF_ORDINAL_DATA_RESPONSE: import("bn.js");
19 changes: 19 additions & 0 deletions dist/constants/ordinals/ordinals.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.VDXF_ORDINAL_DATA_RESPONSE = exports.VDXF_ORDINAL_USER_DATA_REQUEST = exports.VDXF_ORDINAL_USER_SPECIFIC_DATA_PACKET = exports.VDXF_ORDINAL_APP_ENCRYPTION_RESPONSE = exports.VDXF_ORDINAL_APP_ENCRYPTION_REQUEST = exports.VDXF_ORDINAL_PROVISION_IDENTITY_DETAILS = exports.VDXF_ORDINAL_IDENTITY_UPDATE_RESPONSE = exports.VDXF_ORDINAL_IDENTITY_UPDATE_REQUEST = exports.VDXF_ORDINAL_AUTHENTICATION_RESPONSE = exports.VDXF_ORDINAL_AUTHENTICATION_REQUEST = exports.VDXF_ORDINAL_VERUSPAY_INVOICE = exports.VDXF_ORDINAL_DATA_DESCRIPTOR = exports.VDXF_OBJECT_RESERVED_BYTE_ID_OR_CURRENCY = exports.VDXF_OBJECT_RESERVED_BYTE_VDXF_ID_STRING = exports.VDXF_OBJECT_RESERVED_BYTE_I_ADDR = void 0;
const bn_js_1 = require("bn.js");
exports.VDXF_OBJECT_RESERVED_BYTE_I_ADDR = new bn_js_1.BN(102, 10);
exports.VDXF_OBJECT_RESERVED_BYTE_VDXF_ID_STRING = new bn_js_1.BN(103, 10);
exports.VDXF_OBJECT_RESERVED_BYTE_ID_OR_CURRENCY = new bn_js_1.BN(104, 10);
exports.VDXF_ORDINAL_DATA_DESCRIPTOR = new bn_js_1.BN(0, 10);
exports.VDXF_ORDINAL_VERUSPAY_INVOICE = new bn_js_1.BN(1, 10);
exports.VDXF_ORDINAL_AUTHENTICATION_REQUEST = new bn_js_1.BN(2, 10);
exports.VDXF_ORDINAL_AUTHENTICATION_RESPONSE = new bn_js_1.BN(3, 10);
exports.VDXF_ORDINAL_IDENTITY_UPDATE_REQUEST = new bn_js_1.BN(4, 10);
exports.VDXF_ORDINAL_IDENTITY_UPDATE_RESPONSE = new bn_js_1.BN(5, 10);
exports.VDXF_ORDINAL_PROVISION_IDENTITY_DETAILS = new bn_js_1.BN(6, 10);
exports.VDXF_ORDINAL_APP_ENCRYPTION_REQUEST = new bn_js_1.BN(8, 10);
exports.VDXF_ORDINAL_APP_ENCRYPTION_RESPONSE = new bn_js_1.BN(9, 10);
exports.VDXF_ORDINAL_USER_SPECIFIC_DATA_PACKET = new bn_js_1.BN(10, 10);
exports.VDXF_ORDINAL_USER_DATA_REQUEST = new bn_js_1.BN(12, 10);
exports.VDXF_ORDINAL_DATA_RESPONSE = new bn_js_1.BN(13, 10);
1 change: 1 addition & 0 deletions dist/constants/ordinals/register.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export declare const registerOrdinals: () => void;
37 changes: 37 additions & 0 deletions dist/constants/ordinals/register.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions dist/constants/ordinals/types.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import { DataDescriptor, DataDescriptorJson } from "../../pbaas";
import { AppEncryptionRequestDetails, AppEncryptionRequestJson, IdentityUpdateRequestDetails, IdentityUpdateRequestDetailsJson, IdentityUpdateResponseDetails, IdentityUpdateResponseDetailsJson, AuthenticationRequestDetails, AuthenticationRequestDetailsJson, AuthenticationResponseDetails, AuthenticationResponseDetailsJson, ProvisionIdentityDetails, ProvisionIdentityDetailsJson, UserDataRequestDetails, UserDataRequestJson, UserSpecificDataPacketDetails, UserSpecificDataPacketDetailsJson, VerusPayInvoiceDetails, AppEncryptionResponseDetails, AppEncryptionResponseDetailsJson } from "../../vdxf/classes";
import { VerusPayInvoiceDetailsJson } from "../../vdxf/classes/payment/VerusPayInvoiceDetails";
import { DataPacketResponse, DataResponseJson } from "../../vdxf/classes/datapacket/DataPacketResponse";
export type OrdinalVDXFObjectReservedData = DataDescriptor | VerusPayInvoiceDetails | IdentityUpdateRequestDetails | IdentityUpdateResponseDetails | AuthenticationRequestDetails | AuthenticationResponseDetails | ProvisionIdentityDetails | AppEncryptionRequestDetails | DataPacketResponse | UserDataRequestDetails | UserSpecificDataPacketDetails | AppEncryptionResponseDetails;
export type OrdinalVDXFObjectReservedDataJson = DataDescriptorJson | VerusPayInvoiceDetailsJson | IdentityUpdateRequestDetailsJson | IdentityUpdateResponseDetailsJson | AuthenticationRequestDetailsJson | AuthenticationResponseDetailsJson | ProvisionIdentityDetailsJson | AppEncryptionRequestJson | DataResponseJson | UserDataRequestJson | UserSpecificDataPacketDetailsJson | AppEncryptionResponseDetailsJson;
2 changes: 2 additions & 0 deletions dist/constants/ordinals/types.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
6 changes: 4 additions & 2 deletions dist/constants/pbaas.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,12 @@ export declare const DATA_TYPE_HEX: import("bn.js");
export declare const DATA_TYPE_BASE64: import("bn.js");
export declare const DATA_TYPE_DATAHASH: import("bn.js");
export declare const DATA_TYPE_RAWSTRINGDATA: import("bn.js");
export declare const HASH_TYPE_SHA256: import("bn.js");
export declare const HASH_TYPE_SHA256D: import("bn.js");
export declare const HASH_TYPE_INVALID: import("bn.js");
export declare const HASH_TYPE_BLAKE2B: import("bn.js");
export declare const HASH_TYPE_BLAKE2BMMR2: import("bn.js");
export declare const HASH_TYPE_KECCAK256: import("bn.js");
export declare const HASH_TYPE_SHA256D: import("bn.js");
export declare const HASH_TYPE_SHA256: import("bn.js");
export declare const HASH_TYPE_SHA256_NAME = "sha256";
export declare const HASH_TYPE_SHA256D_NAME = "sha256D";
export declare const HASH_TYPE_BLAKE2B_NAME = "blake2b";
Expand Down
12 changes: 7 additions & 5 deletions dist/constants/pbaas.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.NULL_I_ADDR = exports.KOMODO_ASSETCHAIN_MAXLEN = exports.DEFAULT_VERUS_CHAINNAME = exports.TESTNET_VERUS_CHAINID = exports.DEFAULT_VERUS_CHAINID = exports.UINT_256_LENGTH = exports.HASH_NAMES = exports.DEFAULT_HASH_TYPE_MMR = exports.DEFAULT_HASH_TYPE = exports.HASH_TYPE_KECCAK256_NAME = exports.HASH_TYPE_BLAKE2B_NAME = exports.HASH_TYPE_SHA256D_NAME = exports.HASH_TYPE_SHA256_NAME = exports.HASH_TYPE_KECCAK256 = exports.HASH_TYPE_BLAKE2B = exports.HASH_TYPE_SHA256D = exports.HASH_TYPE_SHA256 = exports.DATA_TYPE_RAWSTRINGDATA = exports.DATA_TYPE_DATAHASH = exports.DATA_TYPE_BASE64 = exports.DATA_TYPE_HEX = exports.DATA_TYPE_VDXFDATA = exports.DATA_TYPE_MESSAGE = exports.DATA_TYPE_FILENAME = exports.DATA_TYPE_MMRDATA = exports.DATA_TYPE_UNKNOWN = void 0;
exports.NULL_I_ADDR = exports.KOMODO_ASSETCHAIN_MAXLEN = exports.DEFAULT_VERUS_CHAINNAME = exports.TESTNET_VERUS_CHAINID = exports.DEFAULT_VERUS_CHAINID = exports.UINT_256_LENGTH = exports.HASH_NAMES = exports.DEFAULT_HASH_TYPE_MMR = exports.DEFAULT_HASH_TYPE = exports.HASH_TYPE_KECCAK256_NAME = exports.HASH_TYPE_BLAKE2B_NAME = exports.HASH_TYPE_SHA256D_NAME = exports.HASH_TYPE_SHA256_NAME = exports.HASH_TYPE_SHA256 = exports.HASH_TYPE_SHA256D = exports.HASH_TYPE_KECCAK256 = exports.HASH_TYPE_BLAKE2BMMR2 = exports.HASH_TYPE_BLAKE2B = exports.HASH_TYPE_INVALID = exports.DATA_TYPE_RAWSTRINGDATA = exports.DATA_TYPE_DATAHASH = exports.DATA_TYPE_BASE64 = exports.DATA_TYPE_HEX = exports.DATA_TYPE_VDXFDATA = exports.DATA_TYPE_MESSAGE = exports.DATA_TYPE_FILENAME = exports.DATA_TYPE_MMRDATA = exports.DATA_TYPE_UNKNOWN = void 0;
const bn_js_1 = require("bn.js");
exports.DATA_TYPE_UNKNOWN = new bn_js_1.BN("0", 10);
exports.DATA_TYPE_MMRDATA = new bn_js_1.BN("1", 10);
Expand All @@ -11,10 +11,12 @@ exports.DATA_TYPE_HEX = new bn_js_1.BN("5", 10);
exports.DATA_TYPE_BASE64 = new bn_js_1.BN("6", 10);
exports.DATA_TYPE_DATAHASH = new bn_js_1.BN("7", 10);
exports.DATA_TYPE_RAWSTRINGDATA = new bn_js_1.BN("8", 10);
exports.HASH_TYPE_SHA256 = new bn_js_1.BN("1", 10);
exports.HASH_TYPE_SHA256D = new bn_js_1.BN("2", 10);
exports.HASH_TYPE_BLAKE2B = new bn_js_1.BN("3", 10);
exports.HASH_TYPE_KECCAK256 = new bn_js_1.BN("4", 10);
exports.HASH_TYPE_INVALID = new bn_js_1.BN(0, 10);
exports.HASH_TYPE_BLAKE2B = new bn_js_1.BN(1, 10);
exports.HASH_TYPE_BLAKE2BMMR2 = new bn_js_1.BN(2, 10);
exports.HASH_TYPE_KECCAK256 = new bn_js_1.BN(3, 10);
exports.HASH_TYPE_SHA256D = new bn_js_1.BN(4, 10);
exports.HASH_TYPE_SHA256 = new bn_js_1.BN(5, 10);
exports.HASH_TYPE_SHA256_NAME = "sha256";
exports.HASH_TYPE_SHA256D_NAME = "sha256D";
exports.HASH_TYPE_BLAKE2B_NAME = "blake2b";
Expand Down
1 change: 1 addition & 0 deletions dist/constants/vdxf.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@ export declare const HASH160_BYTE_LENGTH = 20;
export declare const HASH256_BYTE_LENGTH = 32;
export declare const I_ADDR_VERSION = 102;
export declare const R_ADDR_VERSION = 60;
export declare const X_ADDR_VERSION = 137;
export declare const NULL_ADDRESS = "i3UXS5QPRQGNRDDqVnyWTnmFCTHDbzmsYk";
export declare const VERUS_DATA_SIGNATURE_PREFIX: Buffer;
3 changes: 2 additions & 1 deletion dist/constants/vdxf.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.VERUS_DATA_SIGNATURE_PREFIX = exports.NULL_ADDRESS = exports.R_ADDR_VERSION = exports.I_ADDR_VERSION = exports.HASH256_BYTE_LENGTH = exports.HASH160_BYTE_LENGTH = exports.VDXF_OBJECT_DEFAULT_VERSION = void 0;
exports.VERUS_DATA_SIGNATURE_PREFIX = exports.NULL_ADDRESS = exports.X_ADDR_VERSION = exports.R_ADDR_VERSION = exports.I_ADDR_VERSION = exports.HASH256_BYTE_LENGTH = exports.HASH160_BYTE_LENGTH = exports.VDXF_OBJECT_DEFAULT_VERSION = void 0;
const bn_js_1 = require("bn.js");
const bufferutils_1 = require("../utils/bufferutils");
exports.VDXF_OBJECT_DEFAULT_VERSION = new bn_js_1.BN(1, 10);
exports.HASH160_BYTE_LENGTH = 20;
exports.HASH256_BYTE_LENGTH = 32;
exports.I_ADDR_VERSION = 102;
exports.R_ADDR_VERSION = 60;
exports.X_ADDR_VERSION = 137;
exports.NULL_ADDRESS = "i3UXS5QPRQGNRDDqVnyWTnmFCTHDbzmsYk";
const VERUS_DATA_SIGNATURE_PREFIX_STRING = "Verus signed data:\n";
var bufferWriter = new bufferutils_1.default.BufferWriter(Buffer.alloc(VERUS_DATA_SIGNATURE_PREFIX_STRING.length + 1));
Expand Down
7 changes: 7 additions & 0 deletions dist/constants/vdxf/veruspay.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
export declare const VERUSPAY_VERSION_3: import("bn.js");
export declare const VERUSPAY_VERSION_4: import("bn.js");
export declare const VERUSPAY_VERSION_CURRENT: import("bn.js");
export declare const VERUSPAY_VERSION_FIRSTVALID: import("bn.js");
export declare const VERUSPAY_VERSION_LASTVALID: import("bn.js");
export declare const VERUSPAY_VERSION_SIGNED: import("bn.js");
export declare const VERUSPAY_VERSION_MASK: import("bn.js");
11 changes: 11 additions & 0 deletions dist/constants/vdxf/veruspay.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.VERUSPAY_VERSION_MASK = exports.VERUSPAY_VERSION_SIGNED = exports.VERUSPAY_VERSION_LASTVALID = exports.VERUSPAY_VERSION_FIRSTVALID = exports.VERUSPAY_VERSION_CURRENT = exports.VERUSPAY_VERSION_4 = exports.VERUSPAY_VERSION_3 = void 0;
const bn_js_1 = require("bn.js");
exports.VERUSPAY_VERSION_3 = new bn_js_1.BN(3, 10);
exports.VERUSPAY_VERSION_4 = new bn_js_1.BN(4, 10);
exports.VERUSPAY_VERSION_CURRENT = new bn_js_1.BN(4, 10);
exports.VERUSPAY_VERSION_FIRSTVALID = new bn_js_1.BN(3, 10);
exports.VERUSPAY_VERSION_LASTVALID = new bn_js_1.BN(4, 10);
exports.VERUSPAY_VERSION_SIGNED = new bn_js_1.BN('80000000', 16);
exports.VERUSPAY_VERSION_MASK = exports.VERUSPAY_VERSION_SIGNED;
6 changes: 6 additions & 0 deletions dist/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@ export * from './pbaas/PartialIdentity';
export * from './pbaas/PartialMMRData';
export * from './pbaas/PartialSignData';
export * from './constants/pbaas';
export * from './constants/ordinals/register';
export * from './constants/ordinals/ordinals';
export * from './constants/ordinals/types';
export * from './constants/vdxf/veruspay';
export * from './constants/deeplink';
export * from './identity/IdentityDefinition';
export * from './currency/CurrencyDefinition';
export * from './vdxf/classes';
export { BN as BigNumber } from 'bn.js';
6 changes: 6 additions & 0 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,13 @@ __exportStar(require("./pbaas/PartialIdentity"), exports);
__exportStar(require("./pbaas/PartialMMRData"), exports);
__exportStar(require("./pbaas/PartialSignData"), exports);
__exportStar(require("./constants/pbaas"), exports);
__exportStar(require("./constants/ordinals/register"), exports);
__exportStar(require("./constants/ordinals/ordinals"), exports);
__exportStar(require("./constants/ordinals/types"), exports);
__exportStar(require("./constants/vdxf/veruspay"), exports);
__exportStar(require("./constants/deeplink"), exports);
__exportStar(require("./identity/IdentityDefinition"), exports);
__exportStar(require("./currency/CurrencyDefinition"), exports);
__exportStar(require("./vdxf/classes"), exports);
var bn_js_1 = require("bn.js");
Object.defineProperty(exports, "BigNumber", { enumerable: true, get: function () { return bn_js_1.BN; } });
4 changes: 2 additions & 2 deletions dist/pbaas/ContentMultiMapRemove.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ class ContentMultiMapRemove {
byteLength += varint_1.default.encodingLength(this.version);
byteLength += varint_1.default.encodingLength(this.action);
if (this.action != ContentMultiMapRemove.ACTION_CLEAR_MAP) {
byteLength += 20;
byteLength += vdxf_1.HASH160_BYTE_LENGTH;
if (this.action != ContentMultiMapRemove.ACTION_REMOVE_ALL_KEY) {
byteLength += 32;
byteLength += vdxf_1.HASH256_BYTE_LENGTH;
}
}
return byteLength;
Expand Down
2 changes: 1 addition & 1 deletion dist/pbaas/Credential.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class Credential {
let length = 0;
length += varint_1.default.encodingLength(this.version);
length += varint_1.default.encodingLength(this.flags);
length += 20; // Credential key
length += vdxf_1.HASH160_BYTE_LENGTH; // Credential key
// Both the credential and scopes are serialized as JSON strings.
const credStr = JSON.stringify(this.credential);
const credentialLength = credStr.length;
Expand Down
Loading