diff options
author | Jacob Evans <dekz@dekz.net> | 2018-08-14 07:36:11 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-14 07:36:11 +0800 |
commit | e51deb93eef2e59a3577195becfb6d602df3892a (patch) | |
tree | a74ca989588877d3552f28144d40b015f1f5b67e /packages/types/src/index.ts | |
parent | 0025c6640b3a5840bacfb4ab5f6e937fc9af8eff (diff) | |
parent | a3517574936aa6a4911003dbff06302926b04cb4 (diff) | |
download | dexon-sol-tools-e51deb93eef2e59a3577195becfb6d602df3892a.tar dexon-sol-tools-e51deb93eef2e59a3577195becfb6d602df3892a.tar.gz dexon-sol-tools-e51deb93eef2e59a3577195becfb6d602df3892a.tar.bz2 dexon-sol-tools-e51deb93eef2e59a3577195becfb6d602df3892a.tar.lz dexon-sol-tools-e51deb93eef2e59a3577195becfb6d602df3892a.tar.xz dexon-sol-tools-e51deb93eef2e59a3577195becfb6d602df3892a.tar.zst dexon-sol-tools-e51deb93eef2e59a3577195becfb6d602df3892a.zip |
Merge pull request #914 from 0xProject/feature/0x.js/ec-signature-string
0x.js Return signature as a hex encoded string
Diffstat (limited to 'packages/types/src/index.ts')
-rw-r--r-- | packages/types/src/index.ts | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/packages/types/src/index.ts b/packages/types/src/index.ts index 7774b61b0..fa634420d 100644 --- a/packages/types/src/index.ts +++ b/packages/types/src/index.ts @@ -143,6 +143,17 @@ export enum SignatureType { } /** + * The type of the Signer implementation. Some signer implementations use different message prefixes (e.g Trezor) or implement different + * eth_sign behaviour (e.g Metamask). Default assumes a spec compliant `eth_sign`. + */ +export enum SignerType { + Default = 'DEFAULT', + Ledger = 'LEDGER', + Metamask = 'METAMASK', + Trezor = 'TREZOR', +} + +/** * Elliptic Curve signature */ export interface ECSignature { |