Skip to content

Commit

Permalink
non-canonical sign as default
Browse files Browse the repository at this point in the history
  • Loading branch information
sinev-valentine committed Nov 12, 2018
1 parent f20025a commit 359c6d6
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions keychain_lib/include/keychain_lib/keychain_commands.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -444,18 +444,15 @@ struct keychain_command<command_te::sign_hash> : keychain_command_base
sign_canonical(signature, hash.data(),(unsigned char *) private_key.data() );
break;
}
case sign_te::non_canonical:
default:
{
signature = dev::sign(
private_key,
dev::FixedHash<32>(((byte const*) hash.data()),
dev::FixedHash<32>::ConstructFromPointerType::ConstructFromPointer)
).asArray();

break;
}
default:
throw std::runtime_error("unknown sign_type");
}

json_response response(to_hex(signature.data(), signature.size()).c_str(), id);
Expand Down

0 comments on commit 359c6d6

Please sign in to comment.