func FindPubKey()

in macos/wrapper.go [185:202]


func FindPubKey(label, tag string, hash []byte) ([]byte, error) {
	cl, ct := C.CString(label), C.CString(tag)
	var ch unsafe.Pointer
	if len(hash) != 0 {
		ch = C.CBytes(hash)
		defer C.free(unsafe.Pointer(ch))
	}
	w := C.wrapFindPubKey(cl, ct, ch)
	C.free(unsafe.Pointer(cl))
	C.free(unsafe.Pointer(ct))

	res, err := unwrap(w)
	if err != nil {
		return res, err
	}

	return res, nil
}