-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
81dd6bc
commit 1bf27c8
Showing
35 changed files
with
1,575 additions
and
2,344 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import { ApiRequest } from "../../ApiRequest"; | ||
import { ApiPrimitiveJson, RequestParams } from "../../ApiPrimitive"; | ||
import { DataDescriptor } from "../../../utils/types/DataDescriptor"; | ||
import { SignData } from "../../../utils/types/SignData"; | ||
export declare type signDataArgs = { | ||
address?: string; | ||
filename?: string; | ||
message?: string; | ||
messagehex?: string; | ||
messsagebase64?: string; | ||
datahash?: string; | ||
vdxfdata?: string; | ||
mmrdata?: Array<DataDescriptor | SignData>; | ||
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; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import { ApiResponse } from "../../ApiResponse"; | ||
import { Signature } from "../../../utils/types/Signature"; | ||
import { mmrDescriptorParameters } from "../../../utils/types/MmrDescriptor"; | ||
import { DataDescriptor } from "../../../utils/types/DataDescriptor"; | ||
export declare class SignDataResponse extends ApiResponse { | ||
result: { | ||
mmrdescriptor_encrypted: mmrDescriptorParameters; | ||
mmrdescriptor: mmrDescriptorParameters; | ||
signature: string; | ||
signaturedata_encrypted: DataDescriptor; | ||
signaturedata_ssk: string; | ||
signaturedata: Signature; | ||
system: string; | ||
systemid: string; | ||
hashtype: string; | ||
mmrhashtype: string; | ||
hash: string; | ||
identity: string; | ||
canonicalname: string; | ||
address: string; | ||
signatureheight: number; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
dist/vdxf/classes/IdentityData.d.ts → dist/utils/IdentityData.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.