-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpeaq-did-proto-js.d.ts
115 lines (78 loc) · 2.96 KB
/
peaq-did-proto-js.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
declare module 'peaq-did-proto-js' {
export enum VerificationType {
ED25519VERIFICATIONKEY2020 = 0,
SR25519VERIFICATIONKEY2020 = 1
}
export class VerificationMethod {
constructor(data?: any);
getId(): string;
setId(value: string): this;
getType(): string;
setType(value: string): this;
getController(): string;
setController(value: string): this;
getPublicKeyMultibase(): string;
setPublicKeyMultibase(value: string): this;
serializeBinary(): Uint8Array;
static deserializeBinary(bytes: Uint8Array): VerificationMethod;
static deserializeBinaryFromReader(message: VerificationMethod, reader: any): VerificationMethod;
toObject(includeInstance?: boolean): object;
}
export class Signature {
constructor(data?: any);
getType(): string;
setType(value: string): this;
getIssuer(): string;
setIssuer(value: string): this;
getHash(): string;
setHash(value: string): this;
serializeBinary(): Uint8Array;
static deserializeBinary(bytes: Uint8Array): Signature;
static deserializeBinaryFromReader(message: Signature, reader: any): Signature;
toObject(includeInstance?: boolean): object;
}
export class Service {
constructor(data?: any);
getId(): string;
setId(value: string): this;
getType(): string;
setType(value: string): this;
getServiceEndpoint(): string;
setServiceEndpoint(value: string): this;
getData(): string;
setData(value: string): this;
serializeBinary(): Uint8Array;
static deserializeBinary(bytes: Uint8Array): Service;
static deserializeBinaryFromReader(message: Service, reader: any): Service;
toObject(includeInstance?: boolean): object;
}
export class Document {
constructor(data?: any);
getId(): string;
setId(value: string): this;
getController(): string;
setController(value: string): this;
getVerificationMethods(): VerificationMethod[];
setVerificationMethods(value: VerificationMethod[]): this;
addVerificationMethods(value?: VerificationMethod, index?: number): VerificationMethod;
clearVerificationMethods(): this;
getSignature(): Signature | undefined;
setSignature(value?: Signature): this;
hasSignature(): boolean;
clearSignature(): this;
getServices(): Service[];
setServices(value: Service[]): this;
addServices(value?: Service, index?: number): Service;
clearServices(): this;
getAuthentications(): string[];
setAuthentications(value: string[]): this;
addAuthentications(value: string, index?: number): this;
clearAuthentications(): this;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): object;
static deserializeBinary(bytes: Uint8Array): Document;
static deserializeBinaryFromReader(message: Document, reader: any): Document;
static toObject(includeInstance: boolean, msg: Document): object;
}
export function deserializeBinary(bytes: Uint8Array): Document;
}