First work code of Signer!
Slightly refactored code of Key