Skip to content

Commit

Permalink
Improve delegated attestations
Browse files Browse the repository at this point in the history
  • Loading branch information
lbeder committed Nov 5, 2023
1 parent 769b199 commit 7ab3e24
Show file tree
Hide file tree
Showing 17 changed files with 496 additions and 298 deletions.
5 changes: 3 additions & 2 deletions dist/offchain/delegated-proxy.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ import { EIP712MessageTypes, EIP712Response, TypedDataConfig, TypedDataHandler }
export { EIP712MessageTypes, EIP712TypedData, EIP712Request, EIP712Response, TypedDataConfig } from './typed-data-handler';
export declare enum DelegatedProxyAttestationVersion {
Legacy = 0,
Version1 = 1
Version1 = 1,
Version2 = 2
}
export type EIP712AttestationProxyParams = EIP712AttestationParams & {
deadline: bigint;
Expand All @@ -20,5 +21,5 @@ export declare class DelegatedProxy extends TypedDataHandler {
signDelegatedProxyAttestation(params: EIP712AttestationProxyParams, signer: Signer): Promise<EIP712Response<EIP712MessageTypes, EIP712AttestationProxyParams>>;
verifyDelegatedProxyAttestationSignature(attester: string, response: EIP712Response<EIP712MessageTypes, EIP712AttestationProxyParams>): boolean;
signDelegatedProxyRevocation(params: EIP712RevocationProxyParams, signer: Signer): Promise<EIP712Response<EIP712MessageTypes, EIP712RevocationProxyParams>>;
verifyDelegatedProxyRevocationSignature(attester: string, response: EIP712Response<EIP712MessageTypes, EIP712RevocationProxyParams>): boolean;
verifyDelegatedProxyRevocationSignature(revoker: string, response: EIP712Response<EIP712MessageTypes, EIP712RevocationProxyParams>): boolean;
}
54 changes: 47 additions & 7 deletions dist/offchain/delegated-proxy.js

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

2 changes: 1 addition & 1 deletion dist/offchain/delegated-proxy.js.map

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

5 changes: 3 additions & 2 deletions dist/offchain/delegated.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ export { EIP712MessageTypes, EIP712TypedData, EIP712Request, EIP712Response, Par
export declare const EIP712_NAME = "EAS";
export declare enum DelegatedAttestationVersion {
Legacy = 0,
Version1 = 1
Version1 = 1,
Version2 = 2
}
export type EIP712AttestationParams = EIP712Params & {
schema: string;
Expand All @@ -30,5 +31,5 @@ export declare class Delegated extends TypedDataHandler {
signDelegatedAttestation(params: EIP712AttestationParams, signer: Signer): Promise<EIP712Response<EIP712MessageTypes, EIP712AttestationParams>>;
verifyDelegatedAttestationSignature(attester: string, response: EIP712Response<EIP712MessageTypes, EIP712AttestationParams>): boolean;
signDelegatedRevocation(params: EIP712RevocationParams, signer: Signer): Promise<EIP712Response<EIP712MessageTypes, EIP712RevocationParams>>;
verifyDelegatedRevocationSignature(attester: string, response: EIP712Response<EIP712MessageTypes, EIP712RevocationParams>): boolean;
verifyDelegatedRevocationSignature(revoker: string, response: EIP712Response<EIP712MessageTypes, EIP712RevocationParams>): boolean;
}
Loading

0 comments on commit 7ab3e24

Please sign in to comment.