Skip to content

Commit

Permalink
added build files
Browse files Browse the repository at this point in the history
  • Loading branch information
varsha766 committed Oct 19, 2023
1 parent 3407e26 commit 31c2b12
Show file tree
Hide file tree
Showing 9 changed files with 118 additions and 1,237 deletions.
2 changes: 1 addition & 1 deletion build/libs/w3cache/v1/index.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions build/libs/w3cache/v1/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ const CONTEXTS = Object.freeze({
"https://w3c.github.io/vc-data-integrity/vocab/security/vocabulary.jsonld": Object.assign({}, vc_data_integrety_json_1.default),
"https://w3id.org/security/suites/secp256k1recovery-2020/v2": Object.assign({}, lds_ecdsa_secp256k1_recovery2020_json_1.default),
"https://schema.org": Object.assign({}, schema_org_json_1.default),
"https://digitalbazaar.github.io/x25519-key-agreement-2020-context/contexts/x25519-key-agreement-2020-v1.jsonld": Object.assign({}, x25519_key_agreement_2020_v1_json_1.default),
"https://identity.foundation/.well-known/did-configuration/v1": Object.assign({}, did_wellknown_json_1.default),
"https://github.com/hypersign-protocol/hid-ssi-js-sdk/blob/develop/libs/w3cache/v1/X25519KeyAgreementKeyEIP5630.json": Object.assign({}, X25519KeyAgreementKeyEIP5630_json_1.default)
});
exports.default = (url, options) => __awaiter(void 0, void 0, void 0, function* () {
Expand Down
1 change: 1 addition & 0 deletions build/src/tests/config.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@ export declare const hidNodeEp: {
};
export declare function makeCosmoshubPath(a: any): Slip10RawIndex[];
export declare const createWallet: (mnemonic: any) => Promise<DirectSecp256k1HdWallet>;
export declare const entityApiSecret = "29a393a5d70094e409824359fc5d5.befc6c6f32d622e1c29ca900299a5695251b2407ca7cf6db8e6b2569dc13f937a4b83f4fa78738715d6267d3733e4f139";
//# sourceMappingURL=config.d.ts.map
2 changes: 1 addition & 1 deletion build/src/tests/config.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion build/src/tests/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
});
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.createWallet = exports.makeCosmoshubPath = exports.hidNodeEp = exports.mnemonic = void 0;
exports.entityApiSecret = exports.createWallet = exports.makeCosmoshubPath = exports.hidNodeEp = exports.mnemonic = void 0;
const proto_signing_1 = require("@cosmjs/proto-signing");
const crypto_1 = require("@cosmjs/crypto");
exports.mnemonic = 'verify sustain lumber boat demise parade special soft bargain scout spoil there addict move badge rebuild horn achieve hollow acquire glide bundle curious present';
Expand Down Expand Up @@ -49,4 +49,5 @@ const createWallet = (mnemonic) => __awaiter(void 0, void 0, void 0, function* (
}
});
exports.createWallet = createWallet;
exports.entityApiSecret = '29a393a5d70094e409824359fc5d5.befc6c6f32d622e1c29ca900299a5695251b2407ca7cf6db8e6b2569dc13f937a4b83f4fa78738715d6267d3733e4f139';
// wallet address: hid1rh5h603fv9dneqm422uvl4xk3fc77a4uheleq5
3 changes: 1 addition & 2 deletions build/src/tests/credential/vcByEntityApiKey.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ const schemaBody = {
fields: [{ name: 'name', type: 'string', isRequired: false }],
additionalProperties: false,
};
const entityApiSecret = "69b91e007904228e3313e586ba695.bc7705956989e43bbd7060e845c2763a381cbc80f935ac848119b8c2d7d00616346eeb74efe22a0ff140506a0c6157ef6";
beforeEach(function () {
return __awaiter(this, void 0, void 0, function* () {
offlineSigner = yield (0, config_1.createWallet)(config_1.mnemonic);
Expand Down Expand Up @@ -264,7 +263,7 @@ describe('Verifiable credential operation', function () {
describe('#registerCredentialStatus() method to register credential status on chain', () => {
it('Should be able to register credential using entityApiSecretKey', () => __awaiter(this, void 0, void 0, function* () {
const hypersignVC = new index_1.HypersignVerifiableCredential({
entityApiSecretKey: entityApiSecret,
entityApiSecretKey: config_1.entityApiSecret,
nodeRestEndpoint: config_1.hidNodeEp.rest,
nodeRpcEndpoint: config_1.hidNodeEp.rpc,
namespace: config_1.hidNodeEp.namespace,
Expand Down
Loading

0 comments on commit 31c2b12

Please sign in to comment.