Skip to content

Commit

Permalink
Merge pull request #68 from ethereum-attestation-service/improve-dele…
Browse files Browse the repository at this point in the history
…gated

Improve delegated attestations
  • Loading branch information
lbeder authored Nov 7, 2023
2 parents 769b199 + 7ab3e24 commit f569c5b
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 f569c5b

Please sign in to comment.