@automata-network/pom-js-sdk
Advanced tools
Comparing version 0.0.1 to 0.0.2
{ | ||
"name": "@automata-network/pom-js-sdk", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "A socket clinet for automata's Proof Of Machinehood", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -1,3 +0,3 @@ | ||
# POM SOCKET | ||
# POM JS SDK | ||
POM Socket is a low level dependency for automata's Proof Of Machinehood JS SDK | ||
A JS SDK for automata's Proof Of Machinehood |
@@ -35,16 +35,16 @@ import { | ||
interface IdentityData { | ||
identity: Uint8Array; // on macOS, display it by 0x, because identity on macOS is a array, not a string | ||
attestation?: Uint8Array; | ||
export interface AttestDeviceData { | ||
platform: POMPlatform; | ||
chainId: string; | ||
attestation: string; // base64 encoded cbor or a base64 encoded key array in json string format | ||
identity: string; // on Android or iOS, it's a identity string, and on macOS, it's a base64 encoded key bytes | ||
identitySignature: string; // on iOS, it's an assertion, on mac and Android, it's a signature string | ||
} | ||
export interface AttestDeviceData extends IdentityData { | ||
export interface SignatureResult { | ||
platform: POMPlatform; | ||
chainId: string; | ||
signature: string; // on iOS, it's an assertion, on mac and Android, it's a signature string | ||
} | ||
export interface SignatureResult extends AttestDeviceData { | ||
signature: string; | ||
} | ||
export interface IdentityStatusResult { | ||
@@ -83,3 +83,3 @@ status: IdentityStatus; | ||
chainId: string; | ||
identity: Uint8Array; | ||
identity: string; | ||
} | ||
@@ -86,0 +86,0 @@ |
38939
561