Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Signer ¶
type Signer struct {
// contains filtered or unexported fields
}
Signer implements the Signer interface and handles the signing process.
func (*Signer) Sign ¶
func (s *Signer) Sign(ctx context.Context, body []byte, privateKeyBase64 string, createdAt, expiresAt int64) (string, error)
Sign generates a digital signature for the provided payload.
func (*Signer) SignAck ¶ added in v1.7.0
func (s *Signer) SignAck(ctx context.Context, ackBody []byte, requestSignature, privateKeyBase64 string, createdAt, expiresAt int64) (string, error)
SignAck generates a signature for a synchronous Ack response using the NFH-004 §3.4 four-line signing string. If requestSignature is non-empty it is appended as the fourth line; otherwise the signing string is the same three-line format used by Sign.
Click to show internal directories.
Click to hide internal directories.