Merge pull request #28 from iden3/feature/signature-sql-interface

Fix value sql interface
This commit is contained in:
Eduard S
2020-08-14 13:03:25 +02:00
committed by GitHub

View File

@@ -193,7 +193,7 @@ func (s *Signature) Scan(src interface{}) error {
}
// Value implements valuer for database/sql.
func (s *Signature) Value() (driver.Value, error) {
func (s Signature) Value() (driver.Value, error) {
comp := s.Compress()
return comp[:], nil
}
@@ -304,7 +304,7 @@ func (p *PublicKey) Scan(src interface{}) error {
}
// Value implements valuer for database/sql.
func (p *PublicKey) Value() (driver.Value, error) {
func (p PublicKey) Value() (driver.Value, error) {
comp := p.Compress()
return comp[:], nil
}