local rot = go.get_rotation()
local up = vmath.rotate(rot, vmath.vector3(0, 0, 1))
But I believe using that will give you the change in rotation. If you just want to set the rotation on the object you should be able to use the same (0, 0, 1) “up” vector as the “from” vector (v1) and the normal as v2.