mirror of
https://github.com/status-im/status-go.git
synced 2025-01-10 14:47:06 +00:00
14 lines
330 B
Go
14 lines
330 B
Go
|
package communities
|
||
|
|
||
|
import (
|
||
|
"fmt"
|
||
|
|
||
|
"github.com/status-im/status-go/eth-node/crypto"
|
||
|
"github.com/status-im/status-go/eth-node/types"
|
||
|
)
|
||
|
|
||
|
func CalculateRequestID(publicKey string, communityID types.HexBytes) types.HexBytes {
|
||
|
idString := fmt.Sprintf("%s-%s", publicKey, communityID)
|
||
|
return crypto.Keccak256([]byte(idString))
|
||
|
}
|