aboutsummaryrefslogtreecommitdiffstats
path: root/packages/order-utils/src/signature_utils.ts
Commit message (Collapse)AuthorAgeFilesLines
* chore: change package org from 0xproject to 0xJacob Evans2018-10-181-5/+5
|
* update order-utils to use new artifacts and abi-gen wrappers packagesAlex Browne2018-10-161-4/+2
|
* Move Metamask Error to OrderErrorsJacob Evans2018-10-091-7/+4
|
* Throw and handle errors from Providers.Jacob Evans2018-10-091-7/+19
| | | | | | | In web3 wrapper when a response contains an error field we throw this rather than return response.result which is often undefined. In Signature Utils we handle the error thrown when a user rejects the signing dialogue to prevent double signing. Exposed the ZeroExTransaction JSON schema. In Website only use the MetamaskSubprovider if we can detect the provider is Metamask
* Detect MM on signature validation failure.Jacob Evans2018-10-081-24/+28
| | | | Report a developer friendly error in this event to educate them on the compatability wrapper MetamaskSubprovider
* Return SignedOrder from signing utils.Jacob Evans2018-10-051-33/+31
| | | | | Create a helper back in EIP712Utils for code cleanup. Moved constants in order-utils into the constants object
* Move SignTypedData to utils packageJacob Evans2018-10-051-1/+1
|
* Introduce Metamask Subprovider.Jacob Evans2018-10-051-74/+46
| | | | MM has a number of inconsistencies with other providers when implementing the JSON RPC interface. This subprovider wraps those nuances so they do not leak into the rest of our code
* Expose eth_signTypedData functionality for order signingJacob Evans2018-10-051-1/+49
|
* Add address normalization to isValidECSignature methodFabio Berger2018-09-271-1/+3
|
* Remove remaining Trezor referencesAmir Bandeali2018-08-251-12/+1
|
* Fixed linter in signatureUtilsGreg Hysen2018-08-251-1/+1
|
* Fixed trezor personal message in client+contracts; added a test using ↵Greg Hysen2018-08-251-1/+1
| | | | message signed by Trezor One (firmware v1.6.2)
* Remove Trezor SignatureTypeAmir Bandeali2018-08-251-11/+1
|
* Remove SigntureType.Caller from signingUtilsAmir Bandeali2018-08-251-5/+0
|
* Fix additional merge conflictsFabio Berger2018-08-151-1/+1
|
* Merge developmentFabio Berger2018-08-151-41/+87
|\
| * Update version numbers.Jacob Evans2018-08-141-6/+8
| | | | | | | | | | Add source for Metamask future fix. Consolidate switch statement to one return
| * Rename from SignerProviderType.EthSign to SignerType.DefaultJacob Evans2018-08-111-37/+46
| |
| * Update Changelogs. Rebased from developmentJacob Evans2018-08-091-3/+4
| |
| * Update jsdocJacob Evans2018-08-091-5/+4
| |
| * Introduce SignerProviderTypeJacob Evans2018-08-091-25/+55
| | | | | | | | This allows the developer to indicate the nuanced signer provider. Some have different implementations (trezor, ledger) and others have different implementations (metamask). Breaking the abstraction of eth_sign. EthSign assumes a spec compliant implementation and can be used as a default
* | Make signature_util into an object literal so related functions are rendered ↵Fabio Berger2018-08-031-270/+289
|/ | | | together in the docs
* Add assertions to SignatureUtils exported methodsFabio Berger2018-07-121-0/+20
|
* Fixed how trezor messages are signed in `signature_utils`. Now uses ↵Greg Hysen2018-06-211-1/+1
| | | | `byteLength` instead of `length`.
* Move OrderValidationUtils (+ tests) and ExchangeTransferSimulator to order-utilsFabio Berger2018-06-121-10/+15
|
* Try enabling no-unused-variable...fragosti2018-06-051-1/+0
|
* Improve comments and remove unused importsFabio Berger2018-06-021-2/+2
|
* Add comment to exported methodFabio Berger2018-06-021-0/+7
|
* Fix type importsFabio Berger2018-06-021-1/+2
|
* Add signature specific validation methods, and other refactorsFabio Berger2018-06-021-52/+68
|
* Rename ISigner to IWallet and implement SignatureType.ValidatorFabio Berger2018-06-011-3/+39
|
* Merge branch 'v2-prototype' into refactor/order-utils/for-v2Fabio Berger2018-06-011-20/+21
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * v2-prototype: (45 commits) Check length before accessing indices, add awaitTransactionSuccess where needed, and rename function Add back before/after snapshots for each test Rename Signer to Wallet, rename GAS_ESTIMATE to GAS_LIMIT Make preSigned and allowedValidators mappings public Change names of signature types Fix formatting and tests Make AssetProxyId last byte of assetData Add signer to txHash, allow approveValidator to be used with executeTransaction Update Whitelist Fix Exchange interface Increase block gas limit Use last byte of signature as signature type Remove TxOrigin signature type, modify whitelist to use Validator signature type Update Whitelist contract with comments, also require maker to be whitelisted Fix build Add example whitelist contract and minimum tests Add sample whitelist contract Add TxOrigin signature type and rearrange order of types Add approveValidator function Add Validator signature type ... # Conflicts: # packages/contracts/src/contracts/current/protocol/Exchange/MixinSignatureValidator.sol # packages/contracts/src/utils/types.ts # packages/contracts/test/exchange/transactions.ts # packages/order-utils/src/asset_proxy_utils.ts
* | Expose isValidPresignedSignatureAsync methodFabio Berger2018-05-311-3/+19
| |
* | Decide to throw for Caller signature type for nowFabio Berger2018-05-311-2/+3
| |
* | Fix order-utils testsFabio Berger2018-05-311-34/+48
| |
* | Initial refactor of order-utils. Move many utils from contracts into this ↵Fabio Berger2018-05-301-9/+112
|/ | | | package.
* Fix small bug in order-utilsAlex Browne2018-05-231-1/+1
|
* Fix TSLint rulesFabio Berger2018-05-161-4/+13
|
* Move order utils to @0xproject/order-utilsLeonid Logvinov2018-05-021-0/+119