Browse Source

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

Fix value sql interface
feature/babyjubjub-optimization
Eduard S 3 years ago
committed by GitHub
parent
commit
70841d78e7
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      babyjub/eddsa.go

+ 2
- 2
babyjub/eddsa.go

@ -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
}

Loading…
Cancel
Save