Skip to content

Attestations V2 #23

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 165 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
165 commits
Select commit Hold shift + click to select a range
cd9ea98
Enable Attestations
monkins1010 Apr 6, 2023
4d36210
Correct init of Attestations
monkins1010 Apr 6, 2023
1af9783
Typo
monkins1010 Apr 6, 2023
154341c
add more constructors
monkins1010 Apr 6, 2023
4f556a0
add decision
monkins1010 Apr 6, 2023
348be7a
Add attesation reply
monkins1010 Apr 6, 2023
818d978
updates for data
monkins1010 Apr 12, 2023
1c99825
Updates for types of premissions
monkins1010 Apr 14, 2023
5130a1f
Refactor Permission Class
monkins1010 Apr 17, 2023
19d25e1
Challenge updated
monkins1010 Apr 17, 2023
9f5627e
Fix for blank array
monkins1010 Apr 18, 2023
eef8770
Allow empty permission()
monkins1010 Apr 18, 2023
1fd85f0
Refactor RequestedPermission
monkins1010 Apr 18, 2023
ec0ea10
vdxfkey update
monkins1010 Apr 18, 2023
0fb819a
Merge remote-tracking branch 'upstream/master'
monkins1010 Apr 21, 2023
c8039df
Merge remote-tracking branch 'verus/master'
monkins1010 May 7, 2023
4fc7b95
Merge remote-tracking branch 'verus/master'
monkins1010 Jun 16, 2023
4f22a13
update
monkins1010 Jun 16, 2023
4b4c6af
Add Principals and TxDestination
monkins1010 Jun 16, 2023
09ecb41
Start adding in the Identity Serializer
monkins1010 Jun 16, 2023
917c6d0
Remove dupliacate and add to index
monkins1010 Jun 16, 2023
c7e00c7
Autosave 1:44 21/06/2023
monkins1010 Jun 21, 2023
3b8bb5c
Push to principal addresses array
monkins1010 Jun 21, 2023
5274539
Adding contentmultimap processing
monkins1010 Jun 21, 2023
14f0505
Updates to contentmultimap
monkins1010 Jun 21, 2023
5fc9631
update addresses
monkins1010 Jun 21, 2023
1aa4cad
Updates to Identity SErializer
monkins1010 Jun 22, 2023
e447c41
From object to buffer test pass
monkins1010 Jun 23, 2023
9994c93
Identity Serializer passing
monkins1010 Jun 23, 2023
bc8cf4a
Merge remote-tracking branch 'verus/master'
monkins1010 Jun 23, 2023
7d2581b
Build and add attestation tests
monkins1010 Jun 23, 2023
cd4c236
Partial build of attestation class for review
monkins1010 Jun 28, 2023
f8e7ef4
Add Attestation functions
monkins1010 Jul 7, 2023
8a75bbc
Fix Attestation Serialization
monkins1010 Jul 10, 2023
91ed3f7
Read byteLength Attestations
monkins1010 Jul 10, 2023
5c82882
Start Adding MMR Functions to Attestations
monkins1010 Jul 10, 2023
c6a617d
Add MMR
monkins1010 Jul 12, 2023
f968257
Builds updated
monkins1010 Jul 14, 2023
6a9914f
Merge remote-tracking branch 'upstream/master'
monkins1010 Jul 18, 2023
504f224
Merge remote-tracking branch 'verus/master'
monkins1010 Aug 1, 2023
0765c6c
Merge branch 'master' of https://github.com/monkins1010/verus-typescr…
monkins1010 Aug 1, 2023
7f7cf75
Merge remote-tracking branch 'verus/master'
monkins1010 Oct 18, 2023
22a40be
Merge branch 'master' of https://github.com/monkins1010/verus-typescr…
monkins1010 Oct 18, 2023
4db33b4
Update Attestation Keys
monkins1010 Oct 20, 2023
c2042b5
Merge branch 'master' of https://github.com/monkins1010/verus-typescr…
monkins1010 Oct 20, 2023
ad63592
Updates to Compactsize
monkins1010 Oct 20, 2023
50264f0
Updates from merge
monkins1010 Nov 6, 2023
b80fd97
Merge branch 'master' of https://github.com/monkins1010/verus-typescr…
monkins1010 Nov 6, 2023
b790b50
Update Blake2b library
monkins1010 Nov 7, 2023
2750520
Add create hash back in
monkins1010 Nov 7, 2023
473b5d0
Use BN instead of BigInt
monkins1010 Nov 7, 2023
c304748
Merge branch 'master' of https://github.com/monkins1010/verus-typescr…
monkins1010 Nov 7, 2023
0fcb2ec
Change BN > to gt
monkins1010 Nov 7, 2023
c6ccf32
Return to @noble hashes
monkins1010 Nov 7, 2023
4a6ee16
add big integer
monkins1010 Nov 7, 2023
23df01d
Swap Requested access constructor arguments to be consistent
monkins1010 Nov 8, 2023
55d1813
Merge remote-tracking branch 'upstream/master'
monkins1010 Nov 9, 2023
992b95b
Fix conflicts
monkins1010 Nov 9, 2023
04654dd
update yarn lock
monkins1010 Nov 9, 2023
b55bddc
update blake2b
monkins1010 Nov 10, 2023
6938dc6
Merge remote-tracking branch 'upstream/master'
monkins1010 Dec 4, 2023
10723f7
Add AttestationProof type with per leaf proof
monkins1010 Dec 14, 2023
f360fc2
Add AttestationData
monkins1010 Jan 2, 2024
5b0f879
Consolotate Attestation Class to be a full document, or a pruned ZK M…
monkins1010 Jan 3, 2024
bf0dc03
Add Attestation VDXFID webhook
monkins1010 Jan 5, 2024
1743fb8
Remove get and BN, Add Attestation Receiver
monkins1010 Jan 10, 2024
34e0d22
Add sytemID to signatures
monkins1010 Jan 11, 2024
789884e
wIP1
monkins1010 Jan 17, 2024
6eacc67
updates to mmr class
Jan 17, 2024
ffea9ce
WIP2
Jan 19, 2024
0d3e3fd
Updates to use Verus MMR type classes
monkins1010 Jan 29, 2024
f0ebfd5
Fix Component hash
monkins1010 Jan 29, 2024
444440a
Add CPartialAttestationProof
monkins1010 Jan 30, 2024
aec4960
Serialization fixes
monkins1010 Jan 30, 2024
b360a33
Refactor VDXF Keys, Friendly Names and Functions
monkins1010 Jan 31, 2024
5c35c33
Refactor vdxfid types functions
monkins1010 Jan 31, 2024
657e9aa
Create classes for Attestation data types
monkins1010 Feb 1, 2024
4cbbb93
Add in Attestation Keys
monkins1010 Feb 2, 2024
59eca7b
Key names updates
monkins1010 Feb 13, 2024
1578afb
Attestation Keys update
monkins1010 Feb 16, 2024
fe71ac8
Dependencies updates
monkins1010 Feb 16, 2024
e1d8d19
Merge remote-tracking branch 'upstream/master' into attest
monkins1010 Feb 16, 2024
66a1ca0
Added Personal Info
monkins1010 Feb 19, 2024
d889495
Update bech32 version and filenames
monkins1010 Feb 20, 2024
5a4e3d3
Updates to Personal Data and Attestations
monkins1010 Feb 23, 2024
2256443
camalcase fix
monkins1010 Feb 27, 2024
0b24869
Remove unused imports
monkins1010 Feb 27, 2024
4f05c8f
Add view keys
monkins1010 Feb 29, 2024
f51d0f9
Update Catagories
monkins1010 Mar 8, 2024
306ea8d
export profile types
monkins1010 Mar 8, 2024
0687804
Updates to add more categories
monkins1010 Mar 12, 2024
9453bf9
Key Updates
monkins1010 Mar 14, 2024
f7e2614
Add Category Keynames
monkins1010 Mar 21, 2024
7e7fbdf
Add attestation receive request
monkins1010 Mar 22, 2024
e216bb3
Added extra requested access item
monkins1010 Mar 25, 2024
17c4f8c
Rebuild error fix
monkins1010 Mar 26, 2024
9e486e0
Spelling Fixes
monkins1010 Mar 27, 2024
89915a6
Merge remote-tracking branch 'upstream/master' into attest
monkins1010 Mar 27, 2024
07e5840
sync keys
monkins1010 Mar 27, 2024
5d669d8
Add DataDescriptor, MMRDescriptor
monkins1010 Apr 15, 2024
c67d764
Updates to Classes for Datadescriptor WIP2
monkins1010 Apr 18, 2024
bbf57aa
Updates to CVDXF_Data
monkins1010 Apr 23, 2024
f85d66e
Add toJson Functions for Datadescriptor
monkins1010 Apr 24, 2024
e7ca299
Add signaturedata fromJson function
monkins1010 Apr 24, 2024
84ab394
Update Attestation to use VDXFData and Datadescriptors
monkins1010 Apr 26, 2024
a567298
Add classes to exports
monkins1010 Apr 26, 2024
4f00f0f
Add Attestation keys for Name and Type
monkins1010 Apr 29, 2024
079132b
Updates for debug
monkins1010 Apr 29, 2024
97b0b34
Remove circular dependancy
monkins1010 Apr 29, 2024
4c1de51
Updates for offsets
monkins1010 Apr 30, 2024
65ada69
Fix deserialization of MMRDescriptor
monkins1010 Apr 30, 2024
d8f323d
Add Attestation object key
monkins1010 May 2, 2024
19352f6
Add VDXFDataToUniValue
monkins1010 May 3, 2024
2e43bbf
Fix signature serializing
monkins1010 May 3, 2024
f34f2c7
Add helper function, and fix toJson for datadescriptors
monkins1010 May 10, 2024
bf7cd12
change Request to just data type
monkins1010 May 17, 2024
236b468
Extra keys to catagorize attestations viewed
monkins1010 May 20, 2024
2018f3d
update
monkins1010 May 20, 2024
194f1be
update test
monkins1010 May 20, 2024
dff3b51
Merge remote-tracking branch 'upstream/master' into attest
monkins1010 May 21, 2024
a2432b3
Add SignData
monkins1010 Aug 20, 2024
35ceb68
update dist
monkins1010 Sep 27, 2024
d71f45b
Updates to code base from code reveiew comments.
monkins1010 Oct 1, 2024
b6b37bb
Updates to comments for review
monkins1010 Oct 2, 2024
6731259
Merge remote-tracking branch 'upstream/master' into attest
monkins1010 Oct 2, 2024
d6dc753
Build dist Update
monkins1010 Oct 2, 2024
32464f4
update json key names and make consistent json functions
monkins1010 Oct 2, 2024
4491a5a
Updates to VdxfUniValue
monkins1010 Oct 8, 2024
9818850
More updates to VdxfUniValue
monkins1010 Oct 8, 2024
da760f4
Update identity tests with new contentmap style
monkins1010 Oct 8, 2024
c1c3856
Updates for tests #1
monkins1010 Oct 9, 2024
b6c596d
Tests updates
monkins1010 Oct 10, 2024
6e13097
Remove Helper function and combine into fromBuffer
monkins1010 Oct 15, 2024
cfceb6c
Fix capitals commit 1
monkins1010 Nov 11, 2024
ec2919f
Fix Capitals complete.
monkins1010 Nov 11, 2024
2d7a166
Updates from attest branch cherry picked
monkins1010 Nov 19, 2024
1f57515
Update to resolve conflicts
monkins1010 Nov 19, 2024
a74ec23
Fix build
monkins1010 Nov 19, 2024
e38c578
Remove file
monkins1010 Nov 19, 2024
5c50493
Fix tests
monkins1010 Nov 19, 2024
c58b5d9
Remove login items #1
monkins1010 Nov 19, 2024
40bac8f
Move Salted data class
monkins1010 Nov 19, 2024
2d18124
Remove mmr tools
monkins1010 Nov 19, 2024
368c32e
Remove unused tool
monkins1010 Nov 19, 2024
e26cd10
clean and add test files
monkins1010 Nov 19, 2024
5d8c7e8
Add tests and fix serializations
monkins1010 Nov 19, 2024
87fbf68
Fix serializer
monkins1010 Nov 19, 2024
30e44b3
Add correct sytle test. Fix RatingJson
monkins1010 Nov 19, 2024
88aa3c1
Class updates
monkins1010 Nov 20, 2024
e6b5e00
update version to default
monkins1010 Nov 20, 2024
0a34951
Fix tests and bugs
monkins1010 Nov 20, 2024
032524e
Fix serializers and add tests
monkins1010 Nov 20, 2024
f2f1fbb
update test
monkins1010 Nov 20, 2024
979735d
Update dist
monkins1010 Nov 20, 2024
72dfd48
update dist, add to index
monkins1010 Nov 20, 2024
b34749d
Merge pull request #31 from monkins1010/master
michaeltout Nov 20, 2024
8f67869
Merge pull request #6 from VerusCoin/pbaas-primitives
michaeltout Dec 9, 2024
76edecd
Add PartialIdentity class
michaeltout Dec 13, 2024
2cd064f
Move PARTIAL_ID_CONTAINS constants to static properties of PartialIde…
michaeltout Dec 13, 2024
9694640
Add Extra Primitives
monkins1010 Jan 21, 2025
488ef80
updates
monkins1010 Jan 21, 2025
c7251f0
Add PartialMMRData and PartialSignData classes
michaeltout Jan 22, 2025
1d50bf5
Merge remote-tracking branch 'junior/identity-update-request' into at…
monkins1010 Jan 23, 2025
dcd6d5b
Updates
monkins1010 Jan 23, 2025
fe3c938
add identity update key
monkins1010 Jan 31, 2025
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
3 changes: 2 additions & 1 deletion dist/api/ApiPrimitive.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ import { IdentityDefinition } from "../identity/IdentityDefinition";
import { OfferForMaking } from "../offers/OfferForMaking";
import { ListedOffer } from "../offers/OfferList";
import { RawTransaction } from "../transaction/RawTransaction";
export declare type ApiPrimitive = string | number | boolean | null | OfferForMaking | ApiPrimitiveJson | ListedOffer | Array<ApiPrimitive> | IdentityDefinition | BlockInfo | RawTransaction;
import { SignDataArgs } from "./classes/SignData/SignDataRequest";
export declare type ApiPrimitive = string | number | boolean | null | OfferForMaking | ApiPrimitiveJson | ListedOffer | Array<ApiPrimitive> | IdentityDefinition | BlockInfo | RawTransaction | SignDataArgs;
export declare type ApiPrimitiveJson = {
[key: string]: ApiPrimitive | undefined;
};
Expand Down
31 changes: 31 additions & 0 deletions dist/api/classes/SignData/SignDataRequest.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
import { ApiRequest } from "../../ApiRequest";
import { ApiPrimitiveJson, RequestParams } from "../../ApiPrimitive";
import { DataDescriptorInfo } from "../../../utils/types/DataDescriptor";
import { SignDataParameters } from "../../../utils/types/SignData";
export declare type SignDataArgs = {
address?: string;
filename?: string;
message?: string;
messagehex?: string;
messsagebase64?: string;
datahash?: string;
vdxfdata?: string;
mmrdata?: Array<DataDescriptorInfo | SignDataParameters>;
mmrsalt?: Array<string>;
mmrhashtype?: string;
priormmr?: Array<string>;
vdxfkeys?: Array<string>;
vdxfkeynames?: Array<string>;
boundhahses?: Array<string>;
hashtype?: string;
signature?: string;
encrypttoaddress?: string;
createmmr?: boolean;
};
export declare class SignDataRequest extends ApiRequest {
data: SignDataArgs;
constructor(chain: string, signableItems: SignDataArgs);
getParams(): RequestParams;
static fromJson(object: ApiPrimitiveJson): SignDataRequest;
toJson(): ApiPrimitiveJson;
}
25 changes: 25 additions & 0 deletions dist/api/classes/SignData/SignDataRequest.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.SignDataRequest = void 0;
const ApiRequest_1 = require("../../ApiRequest");
const cmds_1 = require("../../../constants/cmds");
class SignDataRequest extends ApiRequest_1.ApiRequest {
constructor(chain, signableItems) {
super(chain, cmds_1.SIGN_DATA);
this.data = signableItems;
}
getParams() {
const params = [this.data];
return params.filter((x) => x != null);
}
static fromJson(object) {
return new SignDataRequest(object.chain, object.data);
}
toJson() {
return {
chain: this.chain,
data: this.data,
};
}
}
exports.SignDataRequest = SignDataRequest;
23 changes: 23 additions & 0 deletions dist/api/classes/SignData/SignDataResponse.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import { ApiResponse } from "../../ApiResponse";
import { SignatureDataInfo } from "../../../utils/types/Signature";
import { MmrDescriptorParameters } from "../../../utils/types/MmrDescriptor";
import { DataDescriptorInfo } from "../../../utils/types/DataDescriptor";
export declare class SignDataResponse extends ApiResponse {
result: {
mmrdescriptor_encrypted?: MmrDescriptorParameters;
mmrdescriptor?: MmrDescriptorParameters;
signature?: string;
signaturedata_encrypted?: DataDescriptorInfo;
signaturedata_ssk?: string;
signaturedata?: SignatureDataInfo;
system?: string;
systemid?: string;
hashtype?: string;
mmrhashtype?: string;
hash?: string;
identity?: string;
canonicalname?: string;
address?: string;
signatureheight?: number;
};
}
7 changes: 7 additions & 0 deletions dist/api/classes/SignData/SignDataResponse.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.SignDataResponse = void 0;
const ApiResponse_1 = require("../../ApiResponse");
class SignDataResponse extends ApiResponse_1.ApiResponse {
}
exports.SignDataResponse = SignDataResponse;
8 changes: 5 additions & 3 deletions dist/api/classes/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ import { SendRawTransactionRequest } from './SendRawTransaction/SendRawTransacti
import { SendRawTransactionResponse } from './SendRawTransaction/SendRawTransactionResponse';
import { SignMessageRequest } from './SignMessage/SignMessageRequest';
import { SignMessageResponse } from './SignMessage/SignMessageResponse';
import { SignDataRequest } from './SignData/SignDataRequest';
import { SignDataResponse } from './SignData/SignDataResponse';
import { VerifyMessageRequest } from './VerifyMessage/VerifyMessageRequest';
import { VerifyMessageResponse } from './VerifyMessage/VerifyMessageResponse';
import { GetAddressMempoolResponse } from './GetAddressMempool/GetAddressMempoolResponse';
Expand All @@ -41,6 +43,6 @@ import { EstimateConversionRequest } from './EstimateConversion/EstimateConversi
import { EstimateConversionResponse } from './EstimateConversion/EstimateConversionResponse';
import { ZGetOperationStatusRequest } from './ZGetOperationStatus/ZGetOperationStatusRequest';
import { ZGetOperationStatusResponse } from './ZGetOperationStatus/ZGetOperationStatusResponse';
export { GetAddressBalanceRequest, GetAddressBalanceResponse, GetAddressDeltasRequest, GetAddressDeltasResponse, GetAddressMempoolRequest, GetAddressMempoolResponse, GetAddressUtxosRequest, GetAddressUtxosResponse, GetBlockRequest, GetBlockResponse, GetVdxfIdRequest, GetVdxfIdResponse, GetIdentityRequest, GetIdentityContentRequest, GetIdentityResponse, GetCurrencyRequest, GetCurrencyResponse, GetOffersRequest, GetOffersResponse, GetRawTransactionRequest, GetRawTransactionResponse, MakeOfferRequest, MakeOfferResponse, SendRawTransactionRequest, SendRawTransactionResponse, GetInfoRequest, GetInfoResponse, VerifyMessageRequest, VerifyMessageResponse, SignMessageRequest, SignMessageResponse, SendCurrencyRequest, SendCurrencyResponse, FundRawTransactionRequest, FundRawTransactionResponse, GetCurrencyConvertersRequest, GetCurrencyConvertersResponse, ListCurrenciesRequest, ListCurrenciesResponse, EstimateConversionRequest, EstimateConversionResponse, ZGetOperationStatusRequest, ZGetOperationStatusResponse };
export declare type RpcRequest = typeof MakeOfferRequest | typeof GetOffersRequest | typeof GetAddressBalanceRequest | typeof GetAddressDeltasRequest | typeof GetAddressMempoolRequest | typeof GetAddressUtxosRequest | typeof GetBlockRequest | typeof GetVdxfIdRequest | typeof GetInfoRequest | typeof GetIdentityRequest | typeof GetIdentityContentRequest | typeof GetCurrencyRequest | typeof SendRawTransactionRequest | typeof GetRawTransactionRequest | typeof VerifyMessageRequest | typeof SignMessageRequest | typeof SendCurrencyRequest | typeof FundRawTransactionRequest | typeof GetCurrencyConvertersRequest | typeof ListCurrenciesRequest | typeof EstimateConversionRequest | typeof ZGetOperationStatusRequest;
export declare type RpcResponse = typeof MakeOfferResponse | typeof GetOffersResponse | typeof GetAddressBalanceResponse | typeof GetAddressDeltasResponse | typeof GetAddressMempoolResponse | typeof GetAddressUtxosResponse | typeof GetBlockResponse | typeof GetVdxfIdResponse | typeof GetInfoResponse | typeof GetIdentityResponse | typeof GetCurrencyResponse | typeof SendRawTransactionResponse | typeof GetRawTransactionResponse | typeof VerifyMessageResponse | typeof SignMessageResponse | typeof SendCurrencyResponse | typeof FundRawTransactionResponse | typeof GetCurrencyConvertersResponse | typeof ListCurrenciesResponse | typeof EstimateConversionResponse | typeof ZGetOperationStatusResponse;
export { GetAddressBalanceRequest, GetAddressBalanceResponse, GetAddressDeltasRequest, GetAddressDeltasResponse, GetAddressMempoolRequest, GetAddressMempoolResponse, GetAddressUtxosRequest, GetAddressUtxosResponse, GetBlockRequest, GetBlockResponse, GetVdxfIdRequest, GetVdxfIdResponse, GetIdentityRequest, GetIdentityContentRequest, GetIdentityResponse, GetCurrencyRequest, GetCurrencyResponse, GetOffersRequest, GetOffersResponse, GetRawTransactionRequest, GetRawTransactionResponse, MakeOfferRequest, MakeOfferResponse, SendRawTransactionRequest, SendRawTransactionResponse, GetInfoRequest, GetInfoResponse, VerifyMessageRequest, VerifyMessageResponse, SignMessageRequest, SignMessageResponse, SignDataRequest, SignDataResponse, SendCurrencyRequest, SendCurrencyResponse, FundRawTransactionRequest, FundRawTransactionResponse, GetCurrencyConvertersRequest, GetCurrencyConvertersResponse, ListCurrenciesRequest, ListCurrenciesResponse, EstimateConversionRequest, EstimateConversionResponse, ZGetOperationStatusRequest, ZGetOperationStatusResponse };
export declare type RpcRequest = typeof MakeOfferRequest | typeof GetOffersRequest | typeof GetAddressBalanceRequest | typeof GetAddressDeltasRequest | typeof GetAddressMempoolRequest | typeof GetAddressUtxosRequest | typeof GetBlockRequest | typeof GetVdxfIdRequest | typeof GetInfoRequest | typeof GetIdentityRequest | typeof GetIdentityContentRequest | typeof GetCurrencyRequest | typeof SendRawTransactionRequest | typeof GetRawTransactionRequest | typeof VerifyMessageRequest | typeof SignMessageRequest | typeof SignDataRequest | typeof SendCurrencyRequest | typeof FundRawTransactionRequest | typeof GetCurrencyConvertersRequest | typeof ListCurrenciesRequest | typeof EstimateConversionRequest | typeof ZGetOperationStatusRequest;
export declare type RpcResponse = typeof MakeOfferResponse | typeof GetOffersResponse | typeof GetAddressBalanceResponse | typeof GetAddressDeltasResponse | typeof GetAddressMempoolResponse | typeof GetAddressUtxosResponse | typeof GetBlockResponse | typeof GetVdxfIdResponse | typeof GetInfoResponse | typeof GetIdentityResponse | typeof GetCurrencyResponse | typeof SendRawTransactionResponse | typeof GetRawTransactionResponse | typeof VerifyMessageResponse | typeof SignMessageResponse | typeof SignDataResponse | typeof SendCurrencyResponse | typeof FundRawTransactionResponse | typeof GetCurrencyConvertersResponse | typeof ListCurrenciesResponse | typeof EstimateConversionResponse | typeof ZGetOperationStatusResponse;
6 changes: 5 additions & 1 deletion dist/api/classes/index.js

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

1 change: 1 addition & 0 deletions dist/constants/cmds.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export declare const GET_ADDRESS_DELTAS = "getaddressdeltas";
export declare const GET_ADDRESS_MEMPOOL = "getaddressmempool";
export declare const SEND_RAW_TRANSACTION = "sendrawtransaction";
export declare const GET_ADDRESS_UTXOS = "getaddressutxos";
export declare const SIGN_DATA = "signdata";
export declare const SIGN_MESSAGE = "signmessage";
export declare const VERIFY_MESSAGE = "verifymessage";
export declare const FUND_RAW_TRANSACTION = "fundrawtransaction";
Expand Down
3 changes: 2 additions & 1 deletion dist/constants/cmds.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Z_GET_OPERATION_STATUS = exports.ESTIMATE_CONVERSION = exports.LIST_CURRENCIES = exports.GET_CURRENCY_CONVERTERS = exports.SEND_CURRENCY = exports.FUND_RAW_TRANSACTION = exports.VERIFY_MESSAGE = exports.SIGN_MESSAGE = exports.GET_ADDRESS_UTXOS = exports.SEND_RAW_TRANSACTION = exports.GET_ADDRESS_MEMPOOL = exports.GET_ADDRESS_DELTAS = exports.GET_RAW_TRANSACTION = exports.GET_VDXF_ID = exports.GET_BLOCK = exports.GET_INFO = exports.GET_ADDRESS_BALANCE = exports.GET_CURRENCY = exports.GET_IDENTITY_CONTENT = exports.GET_IDENTITY = exports.GET_OFFERS = exports.MAKE_OFFER = void 0;
exports.Z_GET_OPERATION_STATUS = exports.ESTIMATE_CONVERSION = exports.LIST_CURRENCIES = exports.GET_CURRENCY_CONVERTERS = exports.SEND_CURRENCY = exports.FUND_RAW_TRANSACTION = exports.VERIFY_MESSAGE = exports.SIGN_MESSAGE = exports.SIGN_DATA = exports.GET_ADDRESS_UTXOS = exports.SEND_RAW_TRANSACTION = exports.GET_ADDRESS_MEMPOOL = exports.GET_ADDRESS_DELTAS = exports.GET_RAW_TRANSACTION = exports.GET_VDXF_ID = exports.GET_BLOCK = exports.GET_INFO = exports.GET_ADDRESS_BALANCE = exports.GET_CURRENCY = exports.GET_IDENTITY_CONTENT = exports.GET_IDENTITY = exports.GET_OFFERS = exports.MAKE_OFFER = void 0;
exports.MAKE_OFFER = 'makeoffer';
exports.GET_OFFERS = 'getoffers';
exports.GET_IDENTITY = 'getidentity';
Expand All @@ -15,6 +15,7 @@ exports.GET_ADDRESS_DELTAS = 'getaddressdeltas';
exports.GET_ADDRESS_MEMPOOL = 'getaddressmempool';
exports.SEND_RAW_TRANSACTION = 'sendrawtransaction';
exports.GET_ADDRESS_UTXOS = 'getaddressutxos';
exports.SIGN_DATA = 'signdata';
exports.SIGN_MESSAGE = 'signmessage';
exports.VERIFY_MESSAGE = 'verifymessage';
exports.FUND_RAW_TRANSACTION = 'fundrawtransaction';
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 @@ -2,6 +2,7 @@
/// <reference types="node" />
export declare const VDXF_OBJECT_DEFAULT_VERSION: import("bn.js");
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 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,10 +1,11 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.VERUS_DATA_SIGNATURE_PREFIX = exports.R_ADDR_VERSION = exports.I_ADDR_VERSION = exports.HASH160_BYTE_LENGTH = exports.VDXF_OBJECT_DEFAULT_VERSION = void 0;
exports.VERUS_DATA_SIGNATURE_PREFIX = 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;
const VERUS_DATA_SIGNATURE_PREFIX_STRING = "Verus signed data:\n";
Expand Down
1 change: 1 addition & 0 deletions dist/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export * from './utils/evals';
export * from './utils/script';
export * from './utils/cccustom';
export * from './pbaas/index';
export * from './pbaas/PartialIdentity';
export * from './identity/IdentityDefinition';
export * from './currency/CurrencyDefinition';
export { BN as BigNumber } from 'bn.js';
1 change: 1 addition & 0 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ __exportStar(require("./utils/evals"), exports);
__exportStar(require("./utils/script"), exports);
__exportStar(require("./utils/cccustom"), exports);
__exportStar(require("./pbaas/index"), exports);
__exportStar(require("./pbaas/PartialIdentity"), exports);
__exportStar(require("./identity/IdentityDefinition"), exports);
__exportStar(require("./currency/CurrencyDefinition"), exports);
var bn_js_1 = require("bn.js");
Expand Down
2 changes: 1 addition & 1 deletion dist/pbaas/ContentMultiMap.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export declare class ContentMultiMap implements SerializableEntity {
});
getByteLength(): number;
toBuffer(): Buffer;
fromBuffer(buffer: Buffer, offset?: number, keylists?: Array<Array<string> | null>): number;
fromBuffer(buffer: Buffer, offset?: number, parseVdxfObjects?: boolean): number;
static fromJson(obj: {
[key: string]: ContentMultiMapJsonValue;
}): ContentMultiMap;
Expand Down
11 changes: 5 additions & 6 deletions dist/pbaas/ContentMultiMap.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,19 +79,18 @@ class ContentMultiMap {
}
return writer.buffer;
}
fromBuffer(buffer, offset = 0, keylists = []) {
fromBuffer(buffer, offset = 0, parseVdxfObjects = false) {
const reader = new BufferReader(buffer, offset);
const contentMultiMapSize = reader.readVarInt();
const contentMultiMapSize = reader.readCompactSize();
this.kv_content = new Map();
for (var i = 0; i < contentMultiMapSize.toNumber(); i++) {
const keylist = i < keylists.length ? keylists[i] : null;
for (var i = 0; i < contentMultiMapSize; i++) {
const contentMapKey = (0, address_1.toBase58Check)(reader.readSlice(20), vdxf_1.I_ADDR_VERSION);
const vector = [];
const count = reader.readCompactSize();
for (let j = 0; j < count; j++) {
if (keylist) {
if (parseVdxfObjects) {
const unival = new VdxfUniValue_1.VdxfUniValue();
unival.fromBuffer(reader.readVarSlice(), 0, keylist);
unival.fromBuffer(reader.readVarSlice(), 0);
vector.push(unival);
}
else
Expand Down
Loading