github.com/storacha/go-ucanto@v0.7.2/ucan/crypto/signer.go (about)

     1  package crypto
     2  
     3  import (
     4  	"github.com/storacha/go-ucanto/ucan/crypto/signature"
     5  )
     6  
     7  // Signer is an entity that can sign a payload.
     8  type Signer interface {
     9  	// Sign takes a byte encoded message and produces a verifiable signature.
    10  	Sign(msg []byte) signature.SignatureView
    11  }