github.com/keybase/client/go@v0.0.0-20241007131713-f10651d043c8/kbcrypto/sig.go (about) 1 // Copyright 2018 Keybase, Inc. All rights reserved. Use of 2 // this source code is governed by the included BSD license. 3 4 package kbcrypto 5 6 import ( 7 "crypto/sha256" 8 9 "github.com/keybase/client/go/protocol/keybase1" 10 ) 11 12 func ComputeSigIDFromSigBody(body []byte) keybase1.SigIDBase { 13 return keybase1.SigIDBaseFromBytes(sha256.Sum256(body)) 14 }