Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

some small changes #101

Merged
merged 1 commit into from
Jul 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions build/src/did/IDID.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,14 @@ export declare enum IVerificationRelationships {
export declare enum IKeyType {
Ed25519VerificationKey2020 = "Ed25519VerificationKey2020",
EcdsaSecp256k1VerificationKey2019 = "EcdsaSecp256k1VerificationKey2019",
EcdsaSecp256k1RecoveryMethod2020 = "EcdsaSecp256k1RecoveryMethod2020"
EcdsaSecp256k1RecoveryMethod2020 = "EcdsaSecp256k1RecoveryMethod2020",
X25519KeyAgreementKey2020 = "X25519KeyAgreementKey2020",
X25519KeyAgreementKeyEIP5630 = "X25519KeyAgreementKeyEIP5630"
}
export declare enum IClientSpec {
'eth-personalSign' = "eth-personalSign",
'cosmos-ADR036' = "cosmos-ADR036"
}
export declare enum IKeyAgreementKeyType {
'X25519KeyAgreementKey2020' = "X25519KeyAgreementKey2020",
'X25519KeyAgreementKeyEIP5630' = "X25519KeyAgreementKeyEIP5630"
}
export interface IController {
'@context': string;
id: string;
Expand Down
2 changes: 1 addition & 1 deletion build/src/did/IDID.d.ts.map

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

9 changes: 3 additions & 6 deletions build/src/did/IDID.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* Author: Hypermine Core Team
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.IKeyAgreementKeyType = exports.IClientSpec = exports.IKeyType = exports.IVerificationRelationships = void 0;
exports.IClientSpec = exports.IKeyType = exports.IVerificationRelationships = void 0;
var IVerificationRelationships;
(function (IVerificationRelationships) {
IVerificationRelationships["authentication"] = "authentication";
Expand All @@ -19,14 +19,11 @@ var IKeyType;
IKeyType["Ed25519VerificationKey2020"] = "Ed25519VerificationKey2020";
IKeyType["EcdsaSecp256k1VerificationKey2019"] = "EcdsaSecp256k1VerificationKey2019";
IKeyType["EcdsaSecp256k1RecoveryMethod2020"] = "EcdsaSecp256k1RecoveryMethod2020";
IKeyType["X25519KeyAgreementKey2020"] = "X25519KeyAgreementKey2020";
IKeyType["X25519KeyAgreementKeyEIP5630"] = "X25519KeyAgreementKeyEIP5630";
})(IKeyType = exports.IKeyType || (exports.IKeyType = {}));
var IClientSpec;
(function (IClientSpec) {
IClientSpec["eth-personalSign"] = "eth-personalSign";
IClientSpec["cosmos-ADR036"] = "cosmos-ADR036";
})(IClientSpec = exports.IClientSpec || (exports.IClientSpec = {}));
var IKeyAgreementKeyType;
(function (IKeyAgreementKeyType) {
IKeyAgreementKeyType["X25519KeyAgreementKey2020"] = "X25519KeyAgreementKey2020";
IKeyAgreementKeyType["X25519KeyAgreementKeyEIP5630"] = "X25519KeyAgreementKeyEIP5630";
})(IKeyAgreementKeyType = exports.IKeyAgreementKeyType || (exports.IKeyAgreementKeyType = {}));
4 changes: 2 additions & 2 deletions build/src/did/did.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Did, SignInfo } from '../../libs/generated/ssi/did';
import Web3 from 'web3';
import { IDID, IDIDResolve, ISignedDIDDocument, IKeyType, IClientSpec, IVerificationRelationships, IKeyAgreementKeyType } from './IDID';
import { IDID, IDIDResolve, ISignedDIDDocument, IKeyType, IClientSpec, IVerificationRelationships } from './IDID';
import { OfflineSigner } from '@cosmjs/proto-signing';
/** Class representing HypersignDID */
export default class HypersignDID implements IDID {
Expand Down Expand Up @@ -192,7 +192,7 @@ export default class HypersignDID implements IDID {
addVerificationMethod(params: {
did?: string;
didDocument?: Did;
type: IKeyType | IKeyAgreementKeyType;
type: IKeyType;
id?: string;
controller?: string;
publicKeyMultibase?: string;
Expand Down
2 changes: 1 addition & 1 deletion build/src/did/did.d.ts.map

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

Loading