Map signs directly to H512 (no indirection) (#2038)

This commit is contained in:
Jaco Greeff
2020-03-13 06:34:46 +01:00
committed by GitHub
parent 48f83c7d5b
commit 8c6505d870
2 changed files with 4 additions and 4 deletions
@@ -37,7 +37,7 @@ export default {
Signature: 'H512',
SignerPayload: 'GenericSignerPayload',
EcdsaSignature: '[u8; 65]',
Ed25519Signature: 'Signature',
Sr25519Signature: 'Signature'
Ed25519Signature: 'H512',
Sr25519Signature: 'H512'
}
};
@@ -9,7 +9,7 @@ import { H512 } from '@polkadot/types/interfaces/runtime';
export interface EcdsaSignature extends U8aFixed {}
/** @name Ed25519Signature */
export interface Ed25519Signature extends Signature {}
export interface Ed25519Signature extends H512 {}
/** @name Extrinsic */
export interface Extrinsic extends GenericExtrinsic {}
@@ -85,4 +85,4 @@ export interface Signature extends H512 {}
export interface SignerPayload extends GenericSignerPayload {}
/** @name Sr25519Signature */
export interface Sr25519Signature extends Signature {}
export interface Sr25519Signature extends H512 {}