Method: WebPush::VapidKey#private_key

Defined in:
lib/web_push/vapid_key.rb

#private_keyString

Retrive the encoded elliptic curve private key for VAPID protocol

Returns:

  • (String)

    base64 urlsafe-encoded binary representation of 32-byte VAPID private key



48
49
50
# File 'lib/web_push/vapid_key.rb', line 48

def private_key
  encode64(curve.private_key.to_s(2))
end