@trinsic/okapi
Advanced tools
Comparing version 1.0.0-preview.14 to 1.0.0-preview.15
import * as proto from "@trinsic/okapi-proto"; | ||
export * from "@trinsic/okapi-proto"; | ||
export declare class DIDKey { | ||
static generate(request: proto.GenerateKeyRequest): proto.GenerateKeyResponse; | ||
static resolve(request: proto.ResolveRequest): proto.ResolveResponse; | ||
static generate(request: proto.GenerateKeyRequest): Promise<proto.GenerateKeyResponse>; | ||
static resolve(request: proto.ResolveRequest): Promise<proto.ResolveResponse>; | ||
} | ||
export declare class DIDComm { | ||
static pack(request: proto.PackRequest): proto.PackResponse; | ||
static unpack(request: proto.UnpackRequest): proto.UnpackResponse; | ||
static sign(request: proto.SignRequest): proto.SignResponse; | ||
static verify(request: proto.VerifyRequest): proto.VerifyResponse; | ||
static pack(request: proto.PackRequest): Promise<proto.PackResponse>; | ||
static unpack(request: proto.UnpackRequest): Promise<proto.UnpackResponse>; | ||
static sign(request: proto.SignRequest): Promise<proto.SignResponse>; | ||
static verify(request: proto.VerifyRequest): Promise<proto.VerifyResponse>; | ||
} | ||
export declare class LdProofs { | ||
static generate(request: proto.CreateProofRequest): proto.CreateProofResponse; | ||
static convert(request: proto.VerifyProofRequest): proto.VerifyProofResponse; | ||
static generate(request: proto.CreateProofRequest): Promise<proto.CreateProofResponse>; | ||
static convert(request: proto.VerifyProofRequest): Promise<proto.VerifyProofResponse>; | ||
} |
@@ -33,6 +33,6 @@ "use strict"; | ||
DIDKey.generate = function (request) { | ||
return proto.GenerateKeyResponse.deserializeBinary(native.didkey_generate(request.serializeBinary())); | ||
return Promise.resolve(proto.GenerateKeyResponse.deserializeBinary(native.didkey_generate(request.serializeBinary()))); | ||
}; | ||
DIDKey.resolve = function (request) { | ||
return proto.ResolveResponse.deserializeBinary(native.didkey_resolve(request.serializeBinary())); | ||
return Promise.resolve(proto.ResolveResponse.deserializeBinary(native.didkey_resolve(request.serializeBinary()))); | ||
}; | ||
@@ -46,12 +46,12 @@ return DIDKey; | ||
DIDComm.pack = function (request) { | ||
return proto.PackResponse.deserializeBinary(native.didcomm_pack(request.serializeBinary())); | ||
return Promise.resolve(proto.PackResponse.deserializeBinary(native.didcomm_pack(request.serializeBinary()))); | ||
}; | ||
DIDComm.unpack = function (request) { | ||
return proto.UnpackResponse.deserializeBinary(native.didcomm_unpack(request.serializeBinary())); | ||
return Promise.resolve(proto.UnpackResponse.deserializeBinary(native.didcomm_unpack(request.serializeBinary()))); | ||
}; | ||
DIDComm.sign = function (request) { | ||
return proto.SignResponse.deserializeBinary(native.didcomm_sign(request.serializeBinary())); | ||
return Promise.resolve(proto.SignResponse.deserializeBinary(native.didcomm_sign(request.serializeBinary()))); | ||
}; | ||
DIDComm.verify = function (request) { | ||
return proto.VerifyResponse.deserializeBinary(native.didcomm_verify(request.serializeBinary())); | ||
return Promise.resolve(proto.VerifyResponse.deserializeBinary(native.didcomm_verify(request.serializeBinary()))); | ||
}; | ||
@@ -65,6 +65,6 @@ return DIDComm; | ||
LdProofs.generate = function (request) { | ||
return proto.CreateProofResponse.deserializeBinary(native.ldproofs_create_proof(request.serializeBinary())); | ||
return Promise.resolve(proto.CreateProofResponse.deserializeBinary(native.ldproofs_create_proof(request.serializeBinary()))); | ||
}; | ||
LdProofs.convert = function (request) { | ||
return proto.VerifyProofResponse.deserializeBinary(native.ldproofs_verify_proof(request.serializeBinary())); | ||
return Promise.resolve(proto.VerifyProofResponse.deserializeBinary(native.ldproofs_verify_proof(request.serializeBinary()))); | ||
}; | ||
@@ -71,0 +71,0 @@ return LdProofs; |
@@ -7,1 +7,11 @@ import * as proto from "@trinsic/okapi-proto"; | ||
} | ||
export declare class DIDComm { | ||
static pack(request: proto.PackRequest): Promise<proto.PackResponse>; | ||
static unpack(request: proto.UnpackRequest): Promise<proto.UnpackResponse>; | ||
static sign(request: proto.SignRequest): Promise<proto.SignResponse>; | ||
static verify(request: proto.VerifyRequest): Promise<proto.VerifyResponse>; | ||
} | ||
export declare class LdProofs { | ||
static generate(request: proto.CreateProofRequest): Promise<proto.CreateProofResponse>; | ||
static convert(request: proto.VerifyProofRequest): Promise<proto.VerifyProofResponse>; | ||
} |
@@ -61,3 +61,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.DIDKey = void 0; | ||
exports.LdProofs = exports.DIDComm = exports.DIDKey = void 0; | ||
var okapi_web_1 = __importStar(require("@trinsic/okapi-web")), native = okapi_web_1; | ||
@@ -113,2 +113,86 @@ var proto = __importStar(require("@trinsic/okapi-proto")); | ||
exports.DIDKey = DIDKey; | ||
var DIDComm = /** @class */ (function () { | ||
function DIDComm() { | ||
} | ||
DIDComm.pack = function (request) { | ||
return __awaiter(this, void 0, void 0, function () { | ||
return __generator(this, function (_a) { | ||
switch (_a.label) { | ||
case 0: return [4 /*yield*/, initialize()]; | ||
case 1: | ||
_a.sent(); | ||
return [2 /*return*/, proto.PackResponse.deserializeBinary(native.didcomm_pack(request.serializeBinary()))]; | ||
} | ||
}); | ||
}); | ||
}; | ||
DIDComm.unpack = function (request) { | ||
return __awaiter(this, void 0, void 0, function () { | ||
return __generator(this, function (_a) { | ||
switch (_a.label) { | ||
case 0: return [4 /*yield*/, initialize()]; | ||
case 1: | ||
_a.sent(); | ||
return [2 /*return*/, proto.UnpackResponse.deserializeBinary(native.didcomm_unpack(request.serializeBinary()))]; | ||
} | ||
}); | ||
}); | ||
}; | ||
DIDComm.sign = function (request) { | ||
return __awaiter(this, void 0, void 0, function () { | ||
return __generator(this, function (_a) { | ||
switch (_a.label) { | ||
case 0: return [4 /*yield*/, initialize()]; | ||
case 1: | ||
_a.sent(); | ||
return [2 /*return*/, proto.SignResponse.deserializeBinary(native.didcomm_sign(request.serializeBinary()))]; | ||
} | ||
}); | ||
}); | ||
}; | ||
DIDComm.verify = function (request) { | ||
return __awaiter(this, void 0, void 0, function () { | ||
return __generator(this, function (_a) { | ||
switch (_a.label) { | ||
case 0: return [4 /*yield*/, initialize()]; | ||
case 1: | ||
_a.sent(); | ||
return [2 /*return*/, proto.VerifyResponse.deserializeBinary(native.didcomm_verify(request.serializeBinary()))]; | ||
} | ||
}); | ||
}); | ||
}; | ||
return DIDComm; | ||
}()); | ||
exports.DIDComm = DIDComm; | ||
var LdProofs = /** @class */ (function () { | ||
function LdProofs() { | ||
} | ||
LdProofs.generate = function (request) { | ||
return __awaiter(this, void 0, void 0, function () { | ||
return __generator(this, function (_a) { | ||
switch (_a.label) { | ||
case 0: return [4 /*yield*/, initialize()]; | ||
case 1: | ||
_a.sent(); | ||
return [2 /*return*/, proto.CreateProofResponse.deserializeBinary(native.ldproofs_create_proof(request.serializeBinary()))]; | ||
} | ||
}); | ||
}); | ||
}; | ||
LdProofs.convert = function (request) { | ||
return __awaiter(this, void 0, void 0, function () { | ||
return __generator(this, function (_a) { | ||
switch (_a.label) { | ||
case 0: return [4 /*yield*/, initialize()]; | ||
case 1: | ||
_a.sent(); | ||
return [2 /*return*/, proto.VerifyProofResponse.deserializeBinary(native.ldproofs_verify_proof(request.serializeBinary()))]; | ||
} | ||
}); | ||
}); | ||
}; | ||
return LdProofs; | ||
}()); | ||
exports.LdProofs = LdProofs; | ||
//# sourceMappingURL=index.web.js.map |
{ | ||
"name": "@trinsic/okapi", | ||
"version": "1.0.0-preview.14", | ||
"version": "1.0.0-preview.15", | ||
"description": "", | ||
@@ -20,5 +20,5 @@ "main": "lib/index.js", | ||
"dependencies": { | ||
"@trinsic/okapi-node": "^1.0.0-preview.14", | ||
"@trinsic/okapi-proto": "^1.0.0-preview.14", | ||
"@trinsic/okapi-web": "^1.0.0-preview.14", | ||
"@trinsic/okapi-node": "^1.0.0-preview.15", | ||
"@trinsic/okapi-proto": "^1.0.0-preview.15", | ||
"@trinsic/okapi-web": "^1.0.0-preview.15", | ||
"google-protobuf": "^3.14.0-rc.3" | ||
@@ -39,3 +39,3 @@ }, | ||
}, | ||
"gitHead": "ed2210a46acc36045d1825db07b30fa2bf8b3abd" | ||
"gitHead": "54130cf5267091ffbc86f04dffedccbe0bd3f24b" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
0
297
18496
7