util

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 21, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package util provides convenience utilities for interacting with the API.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HexToPublicKey

func HexToPublicKey(hexString string) (*ecdsa.PublicKey, error)

HexToPublicKey converts a hex-encoded string to an ECDSA P-256 public key. This key is used in encryption and decryption of data transferred to and from 0xkey secure enclaves.

func Int32Pointer

func Int32Pointer(i int32) *int32

Int32Pointer returns a pointer to the given string.

func RequestTimestamp

func RequestTimestamp() *string

RequestTimestamp returns a timestamp formatted for inclusion in a request.

func StringPointer

func StringPointer(s string) *string

StringPointer returns a pointer to the given string.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL