@xyo-network/core 2.21.1 → 2.21.2
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.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { XyoPayloadWithPartialMeta } from '../../models';
|
|
2
2
|
import { XyoAccount } from '../../Wallet';
|
|
3
|
-
import { XyoBoundWitness,
|
|
3
|
+
import { XyoBoundWitness, XyoBoundWitnessWithMeta } from '../models';
|
|
4
4
|
export interface XyoBoundWitnessBuilderConfig {
|
|
5
5
|
/** Whether or not the payloads should be included in the metadata sent to and recorded by the ArchivistApi */
|
|
6
6
|
readonly inlinePayloads?: boolean;
|
|
@@ -18,5 +18,5 @@ export declare class XyoBoundWitnessBuilder {
|
|
|
18
18
|
hashableFields(): XyoBoundWitness;
|
|
19
19
|
private signatures;
|
|
20
20
|
private inlinePayloads;
|
|
21
|
-
build():
|
|
21
|
+
build(): XyoBoundWitnessWithMeta;
|
|
22
22
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { XyoPayloadWithPartialMeta } from '../../models';
|
|
2
2
|
import { XyoAccount } from '../../Wallet';
|
|
3
|
-
import { XyoBoundWitness,
|
|
3
|
+
import { XyoBoundWitness, XyoBoundWitnessWithMeta } from '../models';
|
|
4
4
|
export interface XyoBoundWitnessBuilderConfig {
|
|
5
5
|
/** Whether or not the payloads should be included in the metadata sent to and recorded by the ArchivistApi */
|
|
6
6
|
readonly inlinePayloads?: boolean;
|
|
@@ -18,5 +18,5 @@ export declare class XyoBoundWitnessBuilder {
|
|
|
18
18
|
hashableFields(): XyoBoundWitness;
|
|
19
19
|
private signatures;
|
|
20
20
|
private inlinePayloads;
|
|
21
|
-
build():
|
|
21
|
+
build(): XyoBoundWitnessWithMeta;
|
|
22
22
|
}
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@ import { assertEx, Buffer } from '@xylabs/sdk-js'
|
|
|
3
3
|
import { sortFields, XyoHasher } from '../../Hasher'
|
|
4
4
|
import { XyoPayload, XyoPayloadWithPartialMeta } from '../../models'
|
|
5
5
|
import { XyoAccount } from '../../Wallet'
|
|
6
|
-
import { WithXyoBoundWitnessMeta, XyoBoundWitness,
|
|
6
|
+
import { WithXyoBoundWitnessMeta, XyoBoundWitness, XyoBoundWitnessWithMeta } from '../models'
|
|
7
7
|
|
|
8
8
|
export interface XyoBoundWitnessBuilderConfig {
|
|
9
9
|
/** Whether or not the payloads should be included in the metadata sent to and recorded by the ArchivistApi */
|
|
@@ -70,7 +70,7 @@ export class XyoBoundWitnessBuilder {
|
|
|
70
70
|
})
|
|
71
71
|
}
|
|
72
72
|
|
|
73
|
-
public build():
|
|
73
|
+
public build(): XyoBoundWitnessWithMeta {
|
|
74
74
|
const hashableFields = this.hashableFields() as unknown as Record<string, unknown>
|
|
75
75
|
const _hash = new XyoHasher(hashableFields).hash
|
|
76
76
|
|