Documentation ¶
Overview ¶
Package signers 微信支付 API v3 Go SDK 数字签名生成器
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SHA256WithRSASigner ¶
type SHA256WithRSASigner struct { MchID string // 商户号 CertificateSerialNo string // 商户证书序列号 PrivateKey *rsa.PrivateKey // 商户私钥 }
SHA256WithRSASigner Sha256WithRSA 数字签名生成器
func (*SHA256WithRSASigner) Algorithm ¶
func (s *SHA256WithRSASigner) Algorithm() string
Algorithm 返回使用的签名算法:SHA256-RSA2048
func (*SHA256WithRSASigner) Sign ¶
func (s *SHA256WithRSASigner) Sign(_ context.Context, message string) (*auth.SignatureResult, error)
Sign 对信息使用 SHA256WithRSA 算法进行签名
Click to show internal directories.
Click to hide internal directories.