Skip to content

Instantly share code, notes, and snippets.

@roppa
roppa / tez
Last active October 18, 2021 16:19
I am attesting that this GitHub handle roppa is linked to the Tezos account tz1iC7UNquWbwf24kW3sGdVtYCNE5EzmTSkT for tzprofiles
@roppa
roppa / crypto.go
Created March 28, 2022 15:38 — forked from miguelmota/crypto.go
Golang SHA256 hash example
package crypto
import (
"crypto/sha256"
)
// NewSHA256 ...
func NewSHA256(data []byte) []byte {
hash := sha256.Sum256(data)
return hash[:]