import React, { Component } from 'react'; import { connect } from 'react-redux'; import translate from 'translations'; import { showNotification, TShowNotification } from 'actions/notifications'; import { verifySignedMessage, ISignedMessage } from 'libs/signing'; import './index.scss'; import { TextArea } from 'components/ui'; interface Props { showNotification: TShowNotification; } interface State { signature: string; verifiedAddress?: string; verifiedMessage?: string; } const initialState: State = { signature: '' }; const signatureExample: ISignedMessage = { address: '0x7cB57B5A97eAbe94205C07890BE4c1aD31E486A8', msg: 'asdfasdfasdf', sig: '0x4771d78f13ba...', version: '2' }; const signaturePlaceholder = JSON.stringify(signatureExample, null, 2); export class VerifyMessage extends Component { public state: State = initialState; public render() { const { verifiedAddress, verifiedMessage, signature } = this.state; return (