WeixinPayV3Key

package
v5.2.16 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 12, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func VerifyRsaSign

func VerifyRsaSign(msg []byte, sign []byte, publicStr []byte, hashType crypto.Hash) bool

VerifyRsaSign 验证数字签名

Types

type EncryptCertificate

type EncryptCertificate struct {
	Algorithm      string `json:"algorithm"`
	AssociatedData string `json:"associated_data"`
	Ciphertext     string `json:"ciphertext"`
	Nonce          string `json:"nonce"`
}

type NotifyResource

type NotifyResource struct {
	Ciphertext     string `json:"ciphertext"`
	AssociatedData string `json:"associated_data"`
	Nonce          string `json:"nonce"`
}

type NotifyResponse

type NotifyResponse struct {
	CreateTime string         `json:"create_time"`
	Resource   NotifyResource `json:"resource"`
}

type TokenResponse

type TokenResponse struct {
	Data []TokenResponseData `json:"data"`
}

type TokenResponseData

type TokenResponseData struct {
	EffectiveTime      string             `json:"effective_time"`
	EncryptCertificate EncryptCertificate `json:"encrypt_certificate"`
	ExpireTime         string             `json:"expire_time"`
	SerialNo           string             `json:"serial_no"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL