@@ -0,0 +1,14 @@
package elect
import (
"crypto/hmac"
"crypto/sha256"
"fmt"
)
func mac(payload, signingKey []byte) string {
gen := hmac.New(sha256.New, signingKey)
gen.Write(payload)
return fmt.Sprintf("%x", gen.Sum(nil))
}
The note is not visible to the blocked user.