chaintope / glueby

[WIP] A Ruby library of smart contracts that can be used on Tapyrus.
MIT License
7 stars 10 forks source link

Use parameter key_type instead 'compressed' parameter #158

Closed Yamaguchi closed 2 years ago

Yamaguchi commented 2 years ago

When the taypurs key is created with Tapyrus::Key.new(), a warning message is printed:

Use key_type parameter instead of compressed. compressed parameter removed in the future.

This PR fixes the way to create a Key like this:

Tapyrus::Key.new(priv_key: key) => Tapyrus::Key.new(priv_key: key, key_type: Tapyrus::Key::TYPES[:compressed])

In most cases in glueby, we use compressed key only.